[llvm] [LV] Add a unittest to a failing scenario that should succeed (PR #196722)

Hassnaa Hamdi via llvm-commits llvm-commits at lists.llvm.org
Sat May 9 06:48:43 PDT 2026


hassnaaHamdi wrote:

> # 🐧 Linux x64 Test Results
> * 174029 tests passed
> * 3319 tests skipped
> * 1 test failed
> 
> ## Failed Tests
> (click on a test name to see its output)
> 
> ### LLVM-Unit
> LLVM-Unit.Transforms/Vectorize/_/VectorizeTests/38/64
> ```
> Script(shard):
> --
> GTEST_OUTPUT=json:/home/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Transforms/Vectorize/./VectorizeTests-LLVM-Unit-1218008-38-64.json GTEST_SHUFFLE=0 GTEST_TOTAL_SHARDS=64 GTEST_SHARD_INDEX=38 /home/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Transforms/Vectorize/./VectorizeTests
> --
> 
> Note: This is test shard 39 of 64.
> [==========] Running 1 test from 1 test suite.
> [----------] Global test environment set-up.
> [----------] 1 test from VPRecipeTest
> [ RUN      ] VPRecipeTest.UFAddUsersBeforeMaterialization
> VPlan ' for UF>=1' {
> Live-in vp<%0> = UF
> Live-in vp<%1> = vector-trip-count
> Live-in ir<1024> = original trip-count
> 
> preheader:
>   EMIT-SCALAR vp<%2> = <Invalid operator>  
>   EMIT vp<%3> = mul vp<%2>, vp<%0>
> Successor(s): vector.loop
> 
> <x1> vector.loop: {
> vp<%4> = CANONICAL-IV
> 
>   vector.header:
>   Successor(s): vector.latch
> 
>   vector.latch:
>     EMIT vp<%index.next> = add nuw vp<%4>, vp<%3>
>     EMIT branch-on-count vp<%index.next>, vp<%1>
>   No successors
> }
> Successor(s): ir-bb<scalar.header>
> 
> ir-bb<scalar.header>:
> No successors
> }
> VectorizeTests: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp:761: VPInstruction *llvm::vputils::findCanonicalIVIncrement(VPlan &): Assertion `(!VFxUF.isMaterialized() || Increment) && "After materializing VFxUF, an increment must exist"' failed.
>  #0 0x000000000095f378 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:880:13
>  #1 0x000000000095c6c5 llvm::sys::RunSignalHandlers() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Signals.cpp:109:18
>  #2 0x0000000000960181 SignalHandler(int, siginfo_t*, void*) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Support/Unix/Signals.inc:448:38
>  #3 0x0000785c7e88c330 (/lib/x86_64-linux-gnu/libc.so.6+0x45330)
>  #4 0x0000785c7e8e5b2c pthread_kill (/lib/x86_64-linux-gnu/libc.so.6+0x9eb2c)
>  #5 0x0000785c7e88c27e raise (/lib/x86_64-linux-gnu/libc.so.6+0x4527e)
>  #6 0x0000785c7e86f8ff abort (/lib/x86_64-linux-gnu/libc.so.6+0x288ff)
>  #7 0x0000785c7e86f81b (/lib/x86_64-linux-gnu/libc.so.6+0x2881b)
>  #8 0x0000785c7e882517 (/lib/x86_64-linux-gnu/libc.so.6+0x3b517)
>  #9 0x0000000000851f34 hasNoUnsignedWrap /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Vectorize/VPlan.h:1019:7
> #10 0x0000000000851f34 llvm::vputils::findCanonicalIVIncrement(llvm::VPlan&) /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Vectorize/VPlanUtils.cpp:763:57
> #11 0x00000000007ff705 llvm::VPRegionBlock::getOrCreateCanonicalIVIncrement() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/lib/Transforms/Vectorize/VPlan.cpp:853:13
> #12 0x0000000000508881 llvm::(anonymous namespace)::VPRecipeTest_UFAddUsersBeforeMaterialization_Test::TestBody() /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/unittests/Transforms/Vectorize/VPlanTest.cpp:1838:24
> #13 0x00000000009748b0 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
> #14 0x00000000009748b0 testing::Test::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2695:9
> #15 0x0000000000975690 os_stack_trace_getter /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:6240:7
> #16 0x0000000000975690 testing::TestInfo::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:2842:11
> #17 0x00000000009762a3 testing::TestSuite::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:3018:35
> #18 0x00000000009874b4 testing::internal::UnitTestImpl::RunAllTests() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5922:41
> #19 0x0000000000986869 testing::UnitTest::Run() /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/googletest/src/gtest.cc:5485:10
> #20 0x0000000000960d3a main /home/gha/actions-runner/_work/llvm-project/llvm-project/third-party/unittest/UnitTestMain/TestMain.cpp:55:3
> #21 0x0000785c7e8711ca (/lib/x86_64-linux-gnu/libc.so.6+0x2a1ca)
> #22 0x0000785c7e87128b __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x2a28b)
> #23 0x00000000004b9fd5 _start (/home/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Transforms/Vectorize/./VectorizeTests+0x4b9fd5)
> 
> --
> exit: -6
> --
> shard JSON output does not exist: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/unittests/Transforms/Vectorize/./VectorizeTests-LLVM-Unit-1218008-38-64.json
> ```
> 
> 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.

First commit failed as expected.

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


More information about the llvm-commits mailing list