[llvm] [VPlan] Compute scalar cost based on VPlan0 instead of legacy CM. (PR #196845)

via llvm-commits llvm-commits at lists.llvm.org
Sun May 10 15:11:58 PDT 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 174040 tests passed
* 3323 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.tools/UpdateTestChecks/update_analyze_test_checks/loopvectorize-costmodel.test</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 4
cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-loopvectorize-costmodel.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll && '/usr/bin/python3' /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/update_analyze_test_checks.py --opt-binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt --version=1 --filter "LV: Found an estimated cost of [0-9]+ for VF [0-9]+ For instruction:\s*%v0 = load float, ptr %in0, align 4" --filter "Cost of [0-9]+ for VF [0-9]+: INTERLEAVE-GROUP with factor 2 at %v0" /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll
# executed command: cp -f /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-loopvectorize-costmodel.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll
# note: command had no output on stdout or stderr
# executed command: /usr/bin/python3 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/utils/update_analyze_test_checks.py --opt-binary /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt --version=1 --filter 'LV: Found an estimated cost of [0-9]+ for VF [0-9]+ For instruction:\s*%v0 = load float, ptr %in0, align 4' --filter 'Cost of [0-9]+ for VF [0-9]+: INTERLEAVE-GROUP with factor 2 at %v0' /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll
# note: command had no output on stdout or stderr
# RUN: at line 5
diff -u /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-loopvectorize-costmodel.ll.expected
# executed command: diff -u /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-loopvectorize-costmodel.ll.expected
# .---command stdout------------
# | --- /home/gha/actions-runner/_work/llvm-project/llvm-project/build/test/tools/UpdateTestChecks/update_analyze_test_checks/Output/loopvectorize-costmodel.test.tmp.ll
# | +++ /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/tools/UpdateTestChecks/update_analyze_test_checks/Inputs/x86-loopvectorize-costmodel.ll.expected
# | @@ -10,6 +10,7 @@
# |  
# |  define void @test() {
# |  ; CHECK-LABEL: 'test'
# | +; CHECK:  LV: Found an estimated cost of 1 for VF 1 For instruction: %v0 = load float, ptr %in0, align 4
# |  ; CHECK:  Cost of 3 for VF 2: INTERLEAVE-GROUP with factor 2 at %v0, ir<%in0>
# |  ; CHECK:  Cost of 3 for VF 4: INTERLEAVE-GROUP with factor 2 at %v0, ir<%in0>
# |  ; CHECK:  Cost of 3 for VF 8: INTERLEAVE-GROUP with factor 2 at %v0, ir<%in0>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>

If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.

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


More information about the llvm-commits mailing list