[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:33:48 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `sanitizer-ppc64le-linux` running on `ppc64le-sanitizer` while building `llvm` at step 2 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/72/builds/6577
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 2 (annotate) failure: 'python ../sanitizer_buildbot/sanitizers/zorg/buildbot/builders/sanitizers/buildbot_selector.py' (failure)
...
[3752/4119] Building CXX object tools/clang/tools/clang-diff/CMakeFiles/clang-diff.dir/ClangDiff.cpp.o
[3753/4119] Linking CXX executable bin/llvm-diff
[3754/4119] Building CXX object tools/clang/tools/clang-refactor/CMakeFiles/clang-refactor.dir/ClangRefactor.cpp.o
[3755/4119] Building CXX object tools/clang/tools/clang-scan-deps/CMakeFiles/clang-scan-deps.dir/ClangScanDeps.cpp.o
[3756/4119] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o
[3757/4119] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[3758/4119] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[3759/4119] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o
[3760/4119] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
[3761/4119] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -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-sanitizer/sanitizer-ppc64le/build/build_default/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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 -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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
Step 8 (build compiler-rt debug) failure: build compiler-rt debug (failure)
...
[3752/4119] Building CXX object tools/clang/tools/clang-diff/CMakeFiles/clang-diff.dir/ClangDiff.cpp.o
[3753/4119] Linking CXX executable bin/llvm-diff
[3754/4119] Building CXX object tools/clang/tools/clang-refactor/CMakeFiles/clang-refactor.dir/ClangRefactor.cpp.o
[3755/4119] Building CXX object tools/clang/tools/clang-scan-deps/CMakeFiles/clang-scan-deps.dir/ClangScanDeps.cpp.o
[3756/4119] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndex.cpp.o
[3757/4119] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[3758/4119] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[3759/4119] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o
[3760/4119] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
[3761/4119] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -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-sanitizer/sanitizer-ppc64le/build/build_default/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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 -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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
Step 9 (test compiler-rt debug) failure: test compiler-rt debug (failure)
...
[194/241] Linking CXX static library lib/libclangFrontend.a
[195/241] Linking CXX static library lib/libclangIndex.a
[196/241] Linking CXX static library lib/libclangRewriteFrontend.a
[197/241] Linking CXX static library lib/libclangARCMigrate.a
[198/241] Linking CXX static library lib/libclangCrossTU.a
[199/241] Linking CXX static library lib/libclangExtractAPI.a
[200/241] Linking CXX static library lib/libclangStaticAnalyzerCore.a
[201/241] Linking CXX static library lib/libclangStaticAnalyzerCheckers.a
[202/241] Linking CXX static library lib/libclangStaticAnalyzerFrontend.a
[203/241] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -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-sanitizer/sanitizer-ppc64le/build/build_default/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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 -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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
Step 10 (build compiler-rt tsan_debug) failure: build compiler-rt tsan_debug (failure)
...
[3733/4100] Building CXX object tools/clang/tools/clang-import-test/CMakeFiles/clang-import-test.dir/clang-import-test.cpp.o
[3734/4100] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/driver.cpp.o
[3735/4100] Building CXX object tools/clang/tools/clang-scan-deps/CMakeFiles/clang-scan-deps.dir/ClangScanDeps.cpp.o
[3736/4100] Building CXX object tools/clang/tools/clang-check/CMakeFiles/clang-check.dir/ClangCheck.cpp.o
[3737/4100] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[3738/4100] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/cc1_main.cpp.o
[3739/4100] Building CXX object tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/core_main.cpp.o
[3740/4100] Building CXX object tools/clang/tools/clang-repl/CMakeFiles/clang-repl.dir/ClangRepl.cpp.o
[3741/4100] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
[3742/4100] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -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-sanitizer/sanitizer-ppc64le/build/build_default/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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 -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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
Step 11 (build compiler-rt default) failure: build compiler-rt default (failure)
...
[3752/4119] Building CXX object tools/clang/tools/clang-repl/CMakeFiles/clang-repl.dir/ClangRepl.cpp.o
[3753/4119] Building CXX object tools/clang/tools/clang-scan-deps/CMakeFiles/clang-scan-deps.dir/ClangScanDeps.cpp.o
[3754/4119] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CIndexCodeCompletion.cpp.o
[3755/4119] Building CXX object tools/clang/tools/libclang/CMakeFiles/libclang.dir/CXExtractAPI.cpp.o
[3756/4119] Building CXX object tools/clang/tools/driver/CMakeFiles/clang.dir/driver.cpp.o
[3757/4119] Building CXX object tools/clang/tools/c-index-test/CMakeFiles/c-index-test.dir/core_main.cpp.o
[3758/4119] Building CXX object tools/clang/tools/clang-check/CMakeFiles/clang-check.dir/ClangCheck.cpp.o
[3759/4119] Building CXX object tools/clang/lib/Driver/CMakeFiles/obj.clangDriver.dir/ToolChains/HIPUtility.cpp.o
[3760/4119] Building CXX object tools/clang/tools/clang-installapi/CMakeFiles/clang-installapi.dir/ClangInstallAPI.cpp.o
[3761/4119] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -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-sanitizer/sanitizer-ppc64le/build/build_default/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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 -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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
Step 12 (test compiler-rt default) failure: test compiler-rt default (failure)
...
[194/241] Linking CXX static library lib/libclangFrontend.a
[195/241] Linking CXX static library lib/libclangRewriteFrontend.a
[196/241] Linking CXX static library lib/libclangIndex.a
[197/241] Linking CXX static library lib/libclangARCMigrate.a
[198/241] Linking CXX static library lib/libclangCrossTU.a
[199/241] Linking CXX static library lib/libclangExtractAPI.a
[200/241] Linking CXX static library lib/libclangStaticAnalyzerCore.a
[201/241] Linking CXX static library lib/libclangStaticAnalyzerCheckers.a
[202/241] Linking CXX static library lib/libclangStaticAnalyzerFrontend.a
[203/241] Building CXX object lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
FAILED: lib/Transforms/Vectorize/CMakeFiles/LLVMVectorize.dir/VPlanTransforms.cpp.o
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm_build0/bin/clang++ -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-sanitizer/sanitizer-ppc64le/build/build_default/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/include -I/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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 -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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
| ^
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/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-sanitizer/sanitizer-ppc64le/build/llvm-project/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp:1490:11)>' requested here
1489 | .Case<VPWidenIntrinsicRecipe, VPWidenCastRecipe>(
Step 13 (build standalone compiler-rt) failure: build standalone compiler-rt (failure)
...
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
Call Stack (most recent call first):
CMakeLists.txt:12 (include)
-- The C compiler identification is unknown
-- The CXX compiler identification is unknown
-- The ASM compiler identification is unknown
-- Didn't find assembler
CMake Error at CMakeLists.txt:22 (project):
The CMAKE_C_COMPILER:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:22 (project):
The CMAKE_CXX_COMPILER:
/home/buildbots/llvm-external-buildbots/workers/ppc64le-sanitizer/sanitizer-ppc64le/build/build_default/bin/clang++
is not a full path to an existing compiler tool.
Tell CMake where to find the compiler by setting either the environment
variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
CMake Error at CMakeLists.txt:22 (project):
No CMAKE_ASM_COMPILER could be found.
Tell CMake where to find the compiler by setting either the environment
variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
to the compiler, or to the compiler name if it is in the PATH.
-- Warning: Did not find file Compiler/-ASM
-- Configuring incomplete, errors occurred!
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
Step 14 (test standalone compiler-rt) failure: test standalone compiler-rt (failure)
@@@BUILD_STEP test standalone compiler-rt@@@
ninja: Entering directory `compiler_rt_build'
ninja: error: loading 'build.ninja': No such file or directory
How to reproduce locally: https://github.com/google/sanitizers/wiki/SanitizerBotReproduceBuild
```
</details>
https://github.com/llvm/llvm-project/pull/119510
More information about the llvm-commits
mailing list