[llvm] [SLP] Support for copyables in the reduced values (PR #153589)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 1 08:35:59 PST 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-clang-ubuntu-x-aarch64-pauth` running on `as-builder-11` while building `llvm` at step 11 "build-default-test-suite".

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

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

```
Step 11 (build-default-test-suite) failure: cmake (failure)
...
17.308 [126/130/2999] Linking C executable MultiSource/Benchmarks/TSVC/ControlLoops-flt/ControlLoops-flt
17.385 [125/130/3000] Building C object MultiSource/Benchmarks/mafft/CMakeFiles/pairlocalalign.dir/Qalignmm.c.o
17.419 [124/130/3001] Linking C executable MultiSource/Benchmarks/TSVC/Symbolics-flt/Symbolics-flt
17.436 [123/130/3002] Building CXX object MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/UI/Common/Update.cpp.o
17.441 [122/130/3003] Building CXX object MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Archive/7z/7zIn.cpp.o
17.446 [121/130/3004] Building C object MultiSource/Benchmarks/TSVC/StatementReordering-flt/CMakeFiles/StatementReordering-flt.dir/tsc.c.o
17.526 [120/130/3005] Building C object MultiSource/Benchmarks/mafft/CMakeFiles/pairlocalalign.dir/partSalignmm.c.o
17.551 [119/130/3006] Building CXX object MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Archive/Zip/ZipHandler.cpp.o
17.601 [118/130/3007] Building C object MultiSource/Benchmarks/mafft/CMakeFiles/pairlocalalign.dir/MSalignmm.c.o
17.619 [117/130/3008] Building CXX object MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o
FAILED: MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o 
/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/build-test-suite/tools/timeit --summary MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o.time /home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang++ -DNDEBUG  -march=armv8l+pauth -mbranch-protection=pac-ret -O2    -O3 -DNDEBUG   -w -Werror=date-time -DBREAK_HANDLER -DUNICODE -D_UNICODE -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/C -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread -Wno-error=narrowing -DBREAK_HANDLER -DUNICODE -D_UNICODE -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/C -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread -MD -MT MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o -MF MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o.d -o MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o -c /home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Compress/DeflateEncoder.cpp
clang++: /home/buildbot/worker/as-builder-11/x-aarch64-pauth/llvm-project/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:1302: llvm::Instruction* {anonymous}::InstructionsState::getMatchingMainOpOrAltOp(llvm::Instruction*) const: Assertion `MainOp && "MainOp cannot be nullptr."' failed.
PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace, preprocessed source, and associated run script.
Stack dump:
0.	Program arguments: /home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang++ -DNDEBUG -march=armv8l+pauth -mbranch-protection=pac-ret -O2 -O3 -DNDEBUG -w -Werror=date-time -DBREAK_HANDLER -DUNICODE -D_UNICODE -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/C -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread -Wno-error=narrowing -DBREAK_HANDLER -DUNICODE -D_UNICODE -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/C -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/myWindows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/include_windows -I/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP -I. -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX -D_7ZIP_LARGE_PAGES -pthread -MD -MT MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o -MF MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o.d -o MultiSource/Benchmarks/7zip/CMakeFiles/7zip-benchmark.dir/CPP/7zip/Compress/DeflateEncoder.cpp.o -c /home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Compress/DeflateEncoder.cpp
1.	<eof> parser at end of file
2.	Optimizer
3.	Running pass "function<eager-inv>(drop-unnecessary-assumes,float2int,lower-constant-intrinsics,chr,loop(loop-rotate<header-duplication;no-prepare-for-lto>,loop-deletion),loop-distribute,inject-tli-mappings,loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>,drop-unnecessary-assumes,infer-alignment,loop-load-elim,instcombine<max-iterations=1;no-verify-fixpoint>,simplifycfg<bonus-inst-threshold=1;forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;switch-to-lookup;no-keep-loops;hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,slp-vectorizer,vector-combine,instcombine<max-iterations=1;no-verify-fixpoint>,loop-unroll<O3>,transform-warning,sroa<preserve-cfg>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop-mssa(licm<allowspeculation>),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;speculate-unpredictables>)" on module "/home/buildbot/worker/as-builder-11/x-aarch64-pauth/test/test-suite/MultiSource/Benchmarks/7zip/CPP/7zip/Compress/DeflateEncoder.cpp"
4.	Running pass "slp-vectorizer" on function "_ZNK9NCompress8NDeflate8NEncoder6CCoder15GetLzBlockPriceEv"
 #0 0x00005b1d205b4062 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x22cc062)
 #1 0x00005b1d205b0d5f llvm::sys::RunSignalHandlers() (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x22c8d5f)
 #2 0x00005b1d204eff28 CrashRecoverySignalHandler(int) CrashRecoveryContext.cpp:0:0
 #3 0x000077e955645330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
 #4 0x000077e95569eb2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
 #5 0x000077e95564527e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
 #6 0x000077e9556288ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
 #7 0x000077e95562881b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
 #8 0x000077e95563b517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
 #9 0x00005b1d22208bdc (anonymous namespace)::InstructionsState::getMatchingMainOpOrAltOp(llvm::Instruction*) const SLPVectorizer.cpp:0:0
#10 0x00005b1d2225f19e llvm::slpvectorizer::BoUpSLP::getLastInstructionInBundle(llvm::slpvectorizer::BoUpSLP::TreeEntry const*)::'lambda'(llvm::Value*)::operator()(llvm::Value*) const SLPVectorizer.cpp:0:0
#11 0x00005b1d22261f69 llvm::slpvectorizer::BoUpSLP::getLastInstructionInBundle(llvm::slpvectorizer::BoUpSLP::TreeEntry const*) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3f79f69)
#12 0x00005b1d22279b42 llvm::slpvectorizer::BoUpSLP::isGatherShuffledSingleRegisterEntry(llvm::slpvectorizer::BoUpSLP::TreeEntry const*, llvm::ArrayRef<llvm::Value*>, llvm::MutableArrayRef<int>, llvm::SmallVectorImpl<llvm::slpvectorizer::BoUpSLP::TreeEntry const*>&, unsigned int, bool) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3f91b42)
#13 0x00005b1d2227e83c llvm::slpvectorizer::BoUpSLP::isGatherShuffledEntry(llvm::slpvectorizer::BoUpSLP::TreeEntry const*, llvm::ArrayRef<llvm::Value*>, llvm::SmallVectorImpl<int>&, llvm::SmallVectorImpl<llvm::SmallVector<llvm::slpvectorizer::BoUpSLP::TreeEntry const*, 6u>>&, unsigned int, bool) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3f9683c)
#14 0x00005b1d222b9b1a llvm::InstructionCost llvm::slpvectorizer::BoUpSLP::processBuildVector<llvm::slpvectorizer::BoUpSLP::ShuffleCostEstimator, llvm::InstructionCost, llvm::TargetTransformInfo, llvm::ArrayRef<llvm::Value*>, llvm::slpvectorizer::BoUpSLP, llvm::SmallPtrSetImpl<llvm::Value*>>(llvm::slpvectorizer::BoUpSLP::TreeEntry const*, llvm::Type*, llvm::TargetTransformInfo&, llvm::ArrayRef<llvm::Value*>&, llvm::slpvectorizer::BoUpSLP&, llvm::SmallPtrSetImpl<llvm::Value*>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3fd1b1a)
#15 0x00005b1d222bc176 llvm::slpvectorizer::BoUpSLP::getEntryCost(llvm::slpvectorizer::BoUpSLP::TreeEntry const*, llvm::ArrayRef<llvm::Value*>, llvm::SmallPtrSetImpl<llvm::Value*>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3fd4176)
#16 0x00005b1d222bf1f4 llvm::slpvectorizer::BoUpSLP::calculateTreeCostAndTrimNonProfitable(llvm::ArrayRef<llvm::Value*>) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3fd71f4)
#17 0x00005b1d22302615 (anonymous namespace)::HorizontalReduction::tryToReduce(llvm::slpvectorizer::BoUpSLP&, llvm::DataLayout const&, llvm::TargetTransformInfo*, llvm::TargetLibraryInfo const&, llvm::AssumptionCache*, llvm::DominatorTree&) SLPVectorizer.cpp:0:0
#18 0x00005b1d2230658a llvm::SLPVectorizerPass::vectorizeHorReduction(llvm::PHINode*, llvm::Instruction*, llvm::BasicBlock*, llvm::slpvectorizer::BoUpSLP&, llvm::SmallVectorImpl<llvm::WeakTrackingVH>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x401e58a)
#19 0x00005b1d2230b941 llvm::SLPVectorizerPass::vectorizeRootInstruction(llvm::PHINode*, llvm::Instruction*, llvm::BasicBlock*, llvm::slpvectorizer::BoUpSLP&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x4023941)
#20 0x00005b1d2230fbe2 llvm::SLPVectorizerPass::vectorizeChainsInBlock(llvm::BasicBlock*, llvm::slpvectorizer::BoUpSLP&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x4027be2)
#21 0x00005b1d22317857 llvm::SLPVectorizerPass::runImpl(llvm::Function&, llvm::ScalarEvolution*, llvm::TargetTransformInfo*, llvm::TargetLibraryInfo*, llvm::AAResults*, llvm::LoopInfo*, llvm::DominatorTree*, llvm::AssumptionCache*, llvm::DemandedBits*, llvm::OptimizationRemarkEmitter*) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x402f857)
#22 0x00005b1d22318539 llvm::SLPVectorizerPass::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x4030539)
#23 0x00005b1d2166daf5 llvm::detail::PassModel<llvm::Function, llvm::SLPVectorizerPass, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x3385af5)
#24 0x00005b1d2000e6f5 llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x1d266f5)
#25 0x00005b1d208557e5 llvm::detail::PassModel<llvm::Function, llvm::PassManager<llvm::Function, llvm::AnalysisManager<llvm::Function>>, llvm::AnalysisManager<llvm::Function>>::run(llvm::Function&, llvm::AnalysisManager<llvm::Function>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x256d7e5)
#26 0x00005b1d2000ce41 llvm::ModuleToFunctionPassAdaptor::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x1d24e41)
#27 0x00005b1d20855565 llvm::detail::PassModel<llvm::Module, llvm::ModuleToFunctionPassAdaptor, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x256d565)
#28 0x00005b1d2000d62d llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module>>::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/home/buildbot/worker/as-builder-11/x-aarch64-pauth/build/bin/clang+++0x1d2562d)

```

</details>

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


More information about the llvm-commits mailing list