[llvm] [Utils] Consolidate `LockstepReverseIterator` into own header (NFC) (PR #116657)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 21 12:47:00 PST 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `ml-opt-dev-x86-64` running on `ml-opt-dev-x86-64-b1` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/137/builds/13768
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
33.992 [1573/64/2167] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64CollectLOH.cpp.o
34.012 [1572/64/2168] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64CondBrTuning.cpp.o
34.014 [1571/64/2169] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ConditionalCompares.cpp.o
34.015 [1570/64/2170] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64DeadRegisterDefinitionsPass.cpp.o
34.024 [1569/64/2171] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ExpandImm.cpp.o
34.032 [1568/64/2172] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64ExpandPseudoInsts.cpp.o
34.052 [1567/64/2173] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64FalkorHWPFFix.cpp.o
34.060 [1566/64/2174] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64FrameLowering.cpp.o
34.068 [1565/64/2175] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64CompressJumpTables.cpp.o
34.076 [1564/64/2176] Building CXX object lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o
FAILED: lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o
ccache /usr/bin/c++ -DCPUINFO_SUPPORTED_PLATFORM=1 -DGTEST_HAS_RTTI=0 -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/ml-opt-dev-x86-64-b1/build/lib/Transforms/Utils -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils -I/b/ml-opt-dev-x86-64-b1/build/include -I/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include -isystem /tmp/tflitebuild/tensorflow/include -isystem /tmp/tflitebuild/eigen/include/eigen3 -isystem /tmp/tflitebuild/abseil-cpp/include -isystem /tmp/tflitebuild/flatbuffers/include -isystem /tmp/tflitebuild/gemmlowp/include/gemmlowp -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes -isystem /tmp/tflitebuild/ml_dtypes/src/ml_dtypes/ml_dtypes -isystem /tmp/tflitebuild/ruy/include -isystem /tmp/tflitebuild/cpuinfo/include -isystem /tmp/tflitebuild/ARM_NEON_2_x86_SSE/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -fno-lifetime-dse -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wimplicit-fallthrough -Wno-uninitialized -Wno-nonnull -Wno-class-memaccess -Wno-redundant-move -Wno-pessimizing-move -Wno-noexcept-type -Wdelete-non-virtual-dtor -Wsuggest-override -Wno-comment -Wno-misleading-indentation -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -std=c++17 -MD -MT lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o -MF lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o.d -o lib/Transforms/Utils/CMakeFiles/LLVMTransformUtils.dir/SimplifyCFG.cpp.o -c /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp: In function ‘bool sinkCommonCodeFromPredecessors(llvm::BasicBlock*, llvm::DomTreeUpdater*)’:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2503:3: error: reference to ‘LockstepReverseIterator’ is ambiguous
2503 | LockstepReverseIterator<true> LRI(UnconditionalPreds);
| ^~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1787:7: note: candidates are: ‘class {anonymous}::LockstepReverseIterator’
1787 | class LockstepReverseIterator {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:77:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Transforms/Utils/LockstepReverseIterator.h:41:7: note: ‘template<bool EarlyFailure> class llvm::LockstepReverseIterator’
41 | class LockstepReverseIterator
| ^~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2503:33: error: ‘LRI’ was not declared in this scope
2503 | LockstepReverseIterator<true> LRI(UnconditionalPreds);
| ^~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2533:44: error: reference to ‘LockstepReverseIterator’ is ambiguous
2533 | auto ProfitableToSinkInstruction = [&](LockstepReverseIterator<true> &LRI) {
| ^~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:1787:7: note: candidates are: ‘class {anonymous}::LockstepReverseIterator’
1787 | class LockstepReverseIterator {
| ^~~~~~~~~~~~~~~~~~~~~~~
In file included from /b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:77:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/include/llvm/Transforms/Utils/LockstepReverseIterator.h:41:7: note: ‘template<bool EarlyFailure> class llvm::LockstepReverseIterator’
41 | class LockstepReverseIterator
| ^~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2533:44: error: ‘LockstepReverseIterator’ has not been declared
2533 | auto ProfitableToSinkInstruction = [&](LockstepReverseIterator<true> &LRI) {
| ^~~~~~~~~~~~~~~~~~~~~~~
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2533:67: error: expected ‘,’ or ‘...’ before ‘<’ token
2533 | auto ProfitableToSinkInstruction = [&](LockstepReverseIterator<true> &LRI) {
| ^
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp: At global scope:
/b/ml-opt-dev-x86-64-b1/llvm-project/llvm/lib/Transforms/Utils/SimplifyCFG.cpp:2206:13: warning: ‘bool canSinkInstructions(llvm::ArrayRef<llvm::Instruction*>, llvm::DenseMap<const llvm::Use*, llvm::SmallVector<llvm::Value*, 4> >&)’ defined but not used [-Wunused-function]
2206 | static bool canSinkInstructions(
| ^~~~~~~~~~~~~~~~~~~
34.076 [1564/63/2177] Building CXX object lib/Transforms/Scalar/CMakeFiles/LLVMScalarOpts.dir/GVNSink.cpp.o
34.077 [1564/62/2178] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64FastISel.cpp.o
34.077 [1564/61/2179] Building CXX object lib/Target/AArch64/CMakeFiles/LLVMAArch64CodeGen.dir/AArch64A53Fix835769.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/116657
More information about the llvm-commits
mailing list