[llvm] [LV][VPlan] Extract the implementation of transform Recipe to EVLRecipe into a small function. NFC (PR #119510)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 22 16:32:41 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-ppc64le-rhel` running on `ppc64le-clang-rhel-test` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/145/builds/4003
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
10.009 [166/4/339] Creating library symlink lib/libclangTidyBugproneModule.so
10.064 [164/5/340] Linking CXX shared library lib/libclangTidyHICPPModule.so.20.0git
10.064 [163/5/341] Linking CXX shared library lib/libclangTidyCERTModule.so.20.0git
10.070 [162/5/342] Creating library symlink lib/libclangTidyCERTModule.so
10.071 [162/4/343] Creating library symlink lib/libclangTidyHICPPModule.so
10.126 [160/5/344] Linking CXX shared library lib/libclangTidyPlugin.so.20.0git
10.129 [159/5/345] Linking CXX shared library lib/libclangTidyMain.so.20.0git
10.133 [158/5/346] Creating library symlink lib/libclangTidyPlugin.so
10.134 [158/4/347] Creating library symlink lib/libclangTidyMain.so
10.164 [157/4/348] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
ccache /home/docker/llvm-external-buildbots/clang.17.0.6/bin/clang++ --gcc-toolchain=/gcc-toolchain/usr -DGTEST_HAS_RTTI=0 -DLLVM_EXPORTS -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/build/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror -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 -std=c++17 -fPIC -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -MD -MT lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o -MF lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o.d -o lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o -c /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1495:28: error: variable 'VPID' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
1495 | else if (auto *CastR = dyn_cast<VPWidenCastRecipe>(CR))
| ^~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:102:22: note: in instantiation of function template specialization 'createEVLRecipe(VPValue *, VPRecipeBase &, VPTypeAnalysis &, VPValue &, VPValue &)::(anonymous class)::operator()<llvm::VPWidenIntrinsicRecipe>' requested here
102 | result.emplace(caseFn(caseValue));
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:46:29: note: in instantiation of function template specialization 'llvm::TypeSwitch<llvm::VPRecipeBase *, llvm::VPRecipeBase *>::Case<llvm::VPWidenIntrinsicRecipe, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11) &>' requested here
46 | return derived.template Case<CaseT>(caseFn)
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1489:8: note: in instantiation of function template specialization 'llvm::detail::TypeSwitchBase<llvm::TypeSwitch<llvm::VPRecipeBase *, llvm::VPRecipeBase *>, llvm::VPRecipeBase *>::Case<llvm::VPWidenIntrinsicRecipe, llvm::VPWidenCastRecipe, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1497:20: note: uninitialized use occurs here
1497 | assert(VPID != Intrinsic::not_intrinsic && "Expected VP intrinsic");
| ^~~~
/usr/include/assert.h:90:27: note: expanded from macro 'assert'
90 | (static_cast <bool> (expr) \
| ^~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1495:18: note: remove the 'if' if its condition is always true
1495 | else if (auto *CastR = dyn_cast<VPWidenCastRecipe>(CR))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1496 | VPID = VPIntrinsic::getForOpcode(CastR->getOpcode());
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1491:31: note: initialize the variable 'VPID' to silence this warning
1491 | Intrinsic::ID VPID;
| ^
| = 0
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1495:28: error: variable 'VPID' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
1495 | else if (auto *CastR = dyn_cast<VPWidenCastRecipe>(CR))
| ^~~~~
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:102:22: note: in instantiation of function template specialization 'createEVLRecipe(VPValue *, VPRecipeBase &, VPTypeAnalysis &, VPValue &, VPValue &)::(anonymous class)::operator()<llvm::VPWidenCastRecipe>' requested here
102 | result.emplace(caseFn(caseValue));
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/include/llvm/ADT/TypeSwitch.h:47:19: note: in instantiation of function template specialization 'llvm::TypeSwitch<llvm::VPRecipeBase *, llvm::VPRecipeBase *>::Case<llvm::VPWidenCastRecipe, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11) &>' requested here
47 | .template Case<CaseT2, CaseTs...>(caseFn);
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1489:8: note: in instantiation of function template specialization 'llvm::detail::TypeSwitchBase<llvm::TypeSwitch<llvm::VPRecipeBase *, llvm::VPRecipeBase *>, llvm::VPRecipeBase *>::Case<llvm::VPWidenIntrinsicRecipe, llvm::VPWidenCastRecipe, (lambda at /home/buildbots/llvm-external-buildbots/workers/ppc64le-clang-rhel-test/clang-ppc64le-rhel/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
```
</details>
https://github.com/llvm/llvm-project/pull/119510
More information about the llvm-commits
mailing list