[llvm] [SandboxVectorizer] Use sbvec-passes flag to create a pipeline of Region passes after BottomUpVec. (PR #111223)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 9 10:42:33 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `flang-aarch64-libcxx` running on `linaro-flang-aarch64-libcxx` while building `llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/89/builds/8127

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
79.454 [280/3/6941] Linking CXX executable bin/clang-check
83.640 [280/2/6942] Linking CXX shared library lib/libFortranSemantics.so.20.0git
83.649 [279/2/6943] Creating library symlink lib/libFortranSemantics.so
83.844 [274/6/6944] Linking CXX executable tools/flang/unittests/Evaluate/real.test
83.850 [274/5/6945] Linking CXX executable tools/flang/unittests/Evaluate/logical.test
83.856 [274/4/6946] Linking CXX executable tools/flang/unittests/Evaluate/integer.test
83.989 [274/3/6947] Linking CXX executable tools/flang/unittests/Evaluate/folding.test
84.051 [274/2/6948] Linking CXX executable tools/flang/unittests/Evaluate/expression.test
92.789 [274/1/6949] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o
93.209 [273/1/6950] Linking CXX shared library lib/libLLVMPasses.so.20.0git
FAILED: lib/libLLVMPasses.so.20.0git 
: && /usr/local/bin/c++ -fPIC -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -stdlib=libc++ -Wl,-z,defs -Wl,-z,nodelete   -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/./lib  -Wl,--gc-sections -shared -Wl,-soname,libLLVMPasses.so.20.0git -o lib/libLLVMPasses.so.20.0git lib/Passes/CMakeFiles/LLVMPasses.dir/CodeGenPassBuilder.cpp.o lib/Passes/CMakeFiles/LLVMPasses.dir/OptimizationLevel.cpp.o lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderBindings.cpp.o lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderPipelines.cpp.o lib/Passes/CMakeFiles/LLVMPasses.dir/PassPlugin.cpp.o lib/Passes/CMakeFiles/LLVMPasses.dir/StandardInstrumentations.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib:/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib:"  lib/libLLVMCFGuard.so.20.0git  lib/libLLVMCodeGen.so.20.0git  lib/libLLVMCoroutines.so.20.0git  lib/libLLVMHipStdPar.so.20.0git  lib/libLLVMipo.so.20.0git  lib/libLLVMIRPrinter.so.20.0git  lib/libLLVMObjCARCOpts.so.20.0git  lib/libLLVMTarget.so.20.0git  lib/libLLVMVectorize.so.20.0git  lib/libLLVMInstrumentation.so.20.0git  lib/libLLVMScalarOpts.so.20.0git  lib/libLLVMAggressiveInstCombine.so.20.0git  lib/libLLVMInstCombine.so.20.0git  lib/libLLVMTransformUtils.so.20.0git  lib/libLLVMAnalysis.so.20.0git  lib/libLLVMCore.so.20.0git  lib/libLLVMSupport.so.20.0git  -Wl,-rpath-link,/home/tcwg-buildbot/worker/flang-aarch64-libcxx/build/lib && :
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: in function `llvm::ModuleToFunctionPassAdaptor llvm::createModuleToFunctionPassAdaptor<llvm::SandboxVectorizerPass>(llvm::SandboxVectorizerPass&&, bool)':
PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x38): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x44): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0xa0): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0xa4): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x114): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x11c): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x13c): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x140): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x180): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x184): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x24c): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o:PassBuilder.cpp:(.text._ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b[_ZN4llvm33createModuleToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_27ModuleToFunctionPassAdaptorEOT_b]+0x254): more undefined references to `vtable for llvm::sandboxir::Pass' follow
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: in function `llvm::CGSCCToFunctionPassAdaptor llvm::createCGSCCToFunctionPassAdaptor<llvm::SandboxVectorizerPass>(llvm::SandboxVectorizerPass&&, bool, bool)':
PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x11c): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x124): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x144): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x148): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x188): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x18c): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x260): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o:PassBuilder.cpp:(.text._ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb[_ZN4llvm32createCGSCCToFunctionPassAdaptorINS_21SandboxVectorizerPassEEENS_26CGSCCToFunctionPassAdaptorEOT_bb]+0x268): more undefined references to `vtable for llvm::sandboxir::Pass' follow
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: in function `llvm::SandboxVectorizerPass::SandboxVectorizerPass(llvm::SandboxVectorizerPass&&)':
PassBuilder.cpp:(.text._ZN4llvm21SandboxVectorizerPassC2EOS0_[_ZN4llvm21SandboxVectorizerPassC2EOS0_]+0xdc): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm21SandboxVectorizerPassC2EOS0_[_ZN4llvm21SandboxVectorizerPassC2EOS0_]+0xe0): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: in function `llvm::detail::PassModel<llvm::Function, llvm::SandboxVectorizerPass, llvm::AnalysisManager<llvm::Function>>::PassModel(llvm::SandboxVectorizerPass)':
PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_]+0x14): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_]+0x20): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_]+0xec): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEEC2ES3_]+0xf0): undefined reference to `vtable for llvm::sandboxir::RegionPassManager'
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: in function `llvm::detail::PassModel<llvm::Function, llvm::SandboxVectorizerPass, llvm::AnalysisManager<llvm::Function>>::~PassModel()':
PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED2Ev[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED2Ev]+0x84): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED2Ev[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED2Ev]+0x88): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilder.cpp.o: in function `llvm::detail::PassModel<llvm::Function, llvm::SandboxVectorizerPass, llvm::AnalysisManager<llvm::Function>>::~PassModel()':
PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED0Ev[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED0Ev]+0x84): undefined reference to `vtable for llvm::sandboxir::Pass'
/usr/bin/ld: PassBuilder.cpp:(.text._ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED0Ev[_ZN4llvm6detail9PassModelINS_8FunctionENS_21SandboxVectorizerPassENS_15AnalysisManagerIS2_JEEEJEED0Ev]+0x88): undefined reference to `vtable for llvm::sandboxir::Pass'
clang++: error: linker command failed with exit code 1 (use -v to see invocation)

```

</details>

https://github.com/llvm/llvm-project/pull/111223


More information about the llvm-commits mailing list