[llvm] [VPlan] Refine hasEarlyExit check. (PR #207791)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 13:49:29 PDT 2026


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `polly-x86_64-linux-shared-plugin` running on `polly-x86_64-gce2` while building `llvm` at step 3 "annotate".

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

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

```
Step 3 (annotate) failure: 'python ../llvm.src/polly/ci/polly-x86_64-linux-shared-plugin.py ...' (failure)
...
ninja: Entering directory `llvm.build'
[ 16%/0.308s :: 4->2->1 (of 6)] Linking CXX executable tools/polly/unittests/Flatten/FlattenTests
[ 33%/0.311s :: 3->2->2 (of 6)] Linking CXX executable tools/polly/unittests/Isl/IslTests
[ 50%/0.359s :: 2->2->3 (of 6)] Linking CXX executable tools/polly/unittests/ScheduleOptimizer/ScheduleOptimizerTests
[ 66%/0.362s :: 1->2->4 (of 6)] Linking CXX executable tools/polly/unittests/DeLICM/DeLICMTests
[ 83%/0.388s :: 1->1->5 (of 6)] Linking CXX executable tools/polly/unittests/Support/ISLToolsTests
[ 83%/0.388s :: 0->1->5 (of 6)] Running polly regression tests
llvm-lit: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/llvm.src/polly/test/lit.cfg:76: note: Clang tests disabled: No compatible Clang found
-- Testing: 1105 tests, 1 workers --
Testing:  0.. 10.. 20.. 30
FAIL: Polly :: Support/pipelineposition.ll (27 of 1105)
******************** TEST 'Polly :: Support/pipelineposition.ll' FAILED ********************
Exit Code: -11

Command Output (stdout):
--
# RUN: at line 1
/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names  -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support  -polly-codegen-verify  -O3 -polly -polly-position=early                    -disable-output -polly-print-scops < /home/worker/src/llvm-project/polly/test/Support/pipelineposition.ll 2>&1 | /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/FileCheck /home/worker/src/llvm-project/polly/test/Support/pipelineposition.ll --check-prefix=NOINLINE
# executed command: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support -polly-codegen-verify -O3 -polly -polly-position=early -disable-output -polly-print-scops
# note: command had no output on stdout or stderr
# error: command failed with exit status: -11
# executed command: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/FileCheck /home/worker/src/llvm-project/polly/test/Support/pipelineposition.ll --check-prefix=NOINLINE

--

********************
Testing:  0.. 10.. 20.. 30.. 40
FAIL: Polly :: Support/dumpfunction.ll (62 of 1105)
******************** TEST 'Polly :: Support/dumpfunction.ll' FAILED ********************
Exit Code: -11

Command Output (stdout):
--
# RUN: at line 2
/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names  -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support  -polly-codegen-verify  -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output /home/worker/src/llvm-project/polly/test/Support/dumpfunction.ll
# executed command: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support -polly-codegen-verify -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output /home/worker/src/llvm-project/polly/test/Support/dumpfunction.ll
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support -polly-codegen-verify -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output /home/worker/src/llvm-project/polly/test/Support/dumpfunction.ll
# | 1.	Running pass "function<eager-inv>(drop-unnecessary-assumes,float2int,lower-constant-intrinsics,chr,polly::DumpFunctionPass,polly,sroa<modify-cfg>,early-cse<memssa>,speculative-execution<only-if-divergent-target>,jump-threading,correlated-propagation,jump-table-to-switch,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-verify-fixpoint>,aggressive-instcombine,libcalls-shrinkwrap,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,reassociate,constraint-elimination,loop-mssa(loop-instsimplify,loop-simplifycfg,licm<no-allowspeculation>,loop-rotate<header-duplication;no-prepare-for-lto;no-check-exit-count>,licm<allowspeculation>,simple-loop-unswitch<nontrivial;trivial>),simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-verify-fixpoint>,loop(loop-idiom,indvars,extra-simple-loop-unswitch-passes,loop-deletion,loop-unroll-full),sroa<modify-cfg>,vector-combine,mldst-motion<no-split-footer-bb>,gvn<>,sccp,bdce,instcombine<max-iterations=1;no-verify-fixpoint>,dfa-jump-threading,jump-threading,correlated-propagation,adce,memcpyopt,dse,move-auto-init,loop-mssa(licm<allowspeculation>),coro-elide,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;no-switch-to-lookup;keep-loops;hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-verify-fixpoint>,loop(loop-rotate<header-duplication;no-prepare-for-lto;check-exit-count>,loop-deletion,loop-interchange),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;aggregate-to-vector>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop-mssa(licm<allowspeculation>),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,mergeicmps,expand-memcmp,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/worker/src/llvm-project/polly/test/Support/dumpfunction.ll"
# | 2.	Running pass "loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>" on function "callee"
# |  #0 0x000077b07e6f5061 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMSupport.so.23.0git+0x2f5061)
# |  #1 0x000077b07e6f1a0c llvm::sys::RunSignalHandlers() (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMSupport.so.23.0git+0x2f1a0c)
# |  #2 0x000077b07e6f1b6c SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x000077b07e045330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x000077b07c5f8d1c llvm::VPlan::hasEarlyExit() const LoopVectorize.cpp:0:0
# |  #5 0x000077b07c6414b2 llvm::LoopVectorizationPlanner::selectInterleaveCount(llvm::VPlan&, llvm::ElementCount, llvm::InstructionCost) (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMVectorize.so.23.0git+0x2414b2)
# |  #6 0x000077b07c655541 llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMVectorize.so.23.0git+0x255541)
Step 7 (check-polly) failure: check-polly (failure)
...
ninja: Entering directory `llvm.build'
[ 16%/0.308s :: 4->2->1 (of 6)] Linking CXX executable tools/polly/unittests/Flatten/FlattenTests
[ 33%/0.311s :: 3->2->2 (of 6)] Linking CXX executable tools/polly/unittests/Isl/IslTests
[ 50%/0.359s :: 2->2->3 (of 6)] Linking CXX executable tools/polly/unittests/ScheduleOptimizer/ScheduleOptimizerTests
[ 66%/0.362s :: 1->2->4 (of 6)] Linking CXX executable tools/polly/unittests/DeLICM/DeLICMTests
[ 83%/0.388s :: 1->1->5 (of 6)] Linking CXX executable tools/polly/unittests/Support/ISLToolsTests
[ 83%/0.388s :: 0->1->5 (of 6)] Running polly regression tests
llvm-lit: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/llvm.src/polly/test/lit.cfg:76: note: Clang tests disabled: No compatible Clang found
-- Testing: 1105 tests, 1 workers --
Testing:  0.. 10.. 20.. 30
FAIL: Polly :: Support/pipelineposition.ll (27 of 1105)
******************** TEST 'Polly :: Support/pipelineposition.ll' FAILED ********************
Exit Code: -11

Command Output (stdout):
--
# RUN: at line 1
/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names  -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support  -polly-codegen-verify  -O3 -polly -polly-position=early                    -disable-output -polly-print-scops < /home/worker/src/llvm-project/polly/test/Support/pipelineposition.ll 2>&1 | /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/FileCheck /home/worker/src/llvm-project/polly/test/Support/pipelineposition.ll --check-prefix=NOINLINE
# executed command: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support -polly-codegen-verify -O3 -polly -polly-position=early -disable-output -polly-print-scops
# note: command had no output on stdout or stderr
# error: command failed with exit status: -11
# executed command: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/FileCheck /home/worker/src/llvm-project/polly/test/Support/pipelineposition.ll --check-prefix=NOINLINE

--

********************
Testing:  0.. 10.. 20.. 30.. 40
FAIL: Polly :: Support/dumpfunction.ll (62 of 1105)
******************** TEST 'Polly :: Support/dumpfunction.ll' FAILED ********************
Exit Code: -11

Command Output (stdout):
--
# RUN: at line 2
/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable  -polly-remarks-minimal  -polly-use-llvm-names  -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support  -polly-codegen-verify  -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output /home/worker/src/llvm-project/polly/test/Support/dumpfunction.ll
# executed command: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support -polly-codegen-verify -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output /home/worker/src/llvm-project/polly/test/Support/dumpfunction.ll
# .---command stderr------------
# | PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace and instructions to reproduce the bug.
# | Stack dump:
# | 0.	Program arguments: /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/bin/opt -load-pass-plugin /home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/LLVMPolly.so -polly-process-unprofitable -polly-remarks-minimal -polly-use-llvm-names -polly-import-jscop-dir=/home/worker/src/llvm-project/polly/test/Support -polly-codegen-verify -O3 -polly -polly-position=before-vectorizer -polly-dump-before --disable-output /home/worker/src/llvm-project/polly/test/Support/dumpfunction.ll
# | 1.	Running pass "function<eager-inv>(drop-unnecessary-assumes,float2int,lower-constant-intrinsics,chr,polly::DumpFunctionPass,polly,sroa<modify-cfg>,early-cse<memssa>,speculative-execution<only-if-divergent-target>,jump-threading,correlated-propagation,jump-table-to-switch,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-verify-fixpoint>,aggressive-instcombine,libcalls-shrinkwrap,tailcallelim,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,reassociate,constraint-elimination,loop-mssa(loop-instsimplify,loop-simplifycfg,licm<no-allowspeculation>,loop-rotate<header-duplication;no-prepare-for-lto;no-check-exit-count>,licm<allowspeculation>,simple-loop-unswitch<nontrivial;trivial>),simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;no-switch-to-arithmetic;no-switch-to-lookup;keep-loops;no-hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;no-sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-verify-fixpoint>,loop(loop-idiom,indvars,extra-simple-loop-unswitch-passes,loop-deletion,loop-unroll-full),sroa<modify-cfg>,vector-combine,mldst-motion<no-split-footer-bb>,gvn<>,sccp,bdce,instcombine<max-iterations=1;no-verify-fixpoint>,dfa-jump-threading,jump-threading,correlated-propagation,adce,memcpyopt,dse,move-auto-init,loop-mssa(licm<allowspeculation>),coro-elide,simplifycfg<bonus-inst-threshold=1;no-forward-switch-cond;switch-range-to-icmp;switch-to-arithmetic;no-switch-to-lookup;keep-loops;hoist-common-insts;no-hoist-loads-stores-with-cond-faulting;sink-common-insts;speculate-blocks;simplify-cond-branch;no-speculate-unpredictables>,instcombine<max-iterations=1;no-verify-fixpoint>,loop(loop-rotate<header-duplication;no-prepare-for-lto;check-exit-count>,loop-deletion,loop-interchange),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;aggregate-to-vector>,infer-alignment,instcombine<max-iterations=1;no-verify-fixpoint>,loop-mssa(licm<allowspeculation>),alignment-from-assumptions,loop-sink,instsimplify,div-rem-pairs,mergeicmps,expand-memcmp,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/worker/src/llvm-project/polly/test/Support/dumpfunction.ll"
# | 2.	Running pass "loop-vectorize<no-interleave-forced-only;no-vectorize-forced-only;>" on function "callee"
# |  #0 0x000077b07e6f5061 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMSupport.so.23.0git+0x2f5061)
# |  #1 0x000077b07e6f1a0c llvm::sys::RunSignalHandlers() (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMSupport.so.23.0git+0x2f1a0c)
# |  #2 0x000077b07e6f1b6c SignalHandler(int, siginfo_t*, void*) Signals.cpp:0:0
# |  #3 0x000077b07e045330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
# |  #4 0x000077b07c5f8d1c llvm::VPlan::hasEarlyExit() const LoopVectorize.cpp:0:0
# |  #5 0x000077b07c6414b2 llvm::LoopVectorizationPlanner::selectInterleaveCount(llvm::VPlan&, llvm::ElementCount, llvm::InstructionCost) (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMVectorize.so.23.0git+0x2414b2)
# |  #6 0x000077b07c655541 llvm::LoopVectorizePass::processLoop(llvm::Loop*) (/home/worker/workers/polly-x86_64-gce2/polly-x86_64-linux-shared-plugin/build/llvm.build/./lib/libLLVMVectorize.so.23.0git+0x255541)

```

</details>

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


More information about the llvm-commits mailing list