[llvm] [NFC][AMDGPU] Assert no bad shift operations will happen (PR #108416)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 24 04:08:07 PDT 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `ml-opt-devrel-x86-64` running on `ml-opt-devrel-x86-64-b2` while building `llvm` at step 5 "build-unified-tree".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/175/builds/5754

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 5 (build-unified-tree) failure: build (failure)
...
250.603 [45/33/3620] Building CXX object tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/ELFDump.cpp.o
250.721 [45/32/3621] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIFormMemoryClauses.cpp.o
250.879 [45/31/3622] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIPeepholeSDWA.cpp.o
251.256 [45/30/3623] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIShrinkInstructions.cpp.o
252.306 [45/29/3624] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILowerWWMCopies.cpp.o
252.380 [45/28/3625] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIFoldOperands.cpp.o
252.614 [45/27/3626] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIFrameLowering.cpp.o
253.113 [45/26/3627] Building CXX object tools/llvm-profgen/CMakeFiles/llvm-profgen.dir/MissingFrameInferrer.cpp.o
253.329 [45/25/3628] Building CXX object tools/llvm-dwarfutil/CMakeFiles/llvm-dwarfutil.dir/DebugInfoLinker.cpp.o
253.543 [45/24/3629] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIInstrInfo.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIInstrInfo.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-devrel-x86-64-b1/build/lib/Target/AMDGPU -I/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU -I/var/lib/buildbot/.local/lib/python3.7/site-packages/tensorflow/include -I/b/ml-opt-devrel-x86-64-b1/build/include -I/b/ml-opt-devrel-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 -fvisibility=hidden  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -DEIGEN_NEON_GEBP_NR=4 -DTFL_STATIC_LIBRARY_BUILD -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIInstrInfo.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIInstrInfo.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SIInstrInfo.cpp.o -c /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
In file included from /usr/include/c++/10/cassert:44,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/CodeGen/MachineScheduler.h:94,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:27:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp: In lambda function:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:9796: error: no matching function for call to ‘has_single_bit(int64_t&)’
 9796 |     assert(llvm::has_single_bit(Mask) && "Invalid mask.");
      | 
In file included from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/SwapByteOrder.h:18,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/Hashing.h:50,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/ArrayRef.h:12,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/BitVector.h:17,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIRegisterInfo.h:17,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.h:19,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:14:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/bit.h:146: note: candidate: ‘template<class T, class> constexpr bool llvm::has_single_bit(T)’
  146 | [[nodiscard]] constexpr inline bool has_single_bit(T Value) noexcept {
      | 
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/bit.h:146: note:   template argument deduction/substitution failed:
In file included from /usr/include/c++/10/bits/move.h:57,
                 from /usr/include/c++/10/bits/stl_pair.h:59,
                 from /usr/include/c++/10/utility:70,
                 from /usr/include/c++/10/algorithm:60,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/SmallVector.h:18,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/Support/raw_ostream.h:16,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/CodeGen/MIRFormatter.h:18,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUMIRFormatter.h:19,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.h:17,
                 from /b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp:14:
/usr/include/c++/10/type_traits: In substitution of ‘template<bool _Cond, class _Tp> using enable_if_t = typename std::enable_if::type [with bool _Cond = false; _Tp = void]’:
/b/ml-opt-devrel-x86-64-b1/llvm-project/llvm/include/llvm/ADT/bit.h:145:0:   required from here
/usr/include/c++/10/type_traits:2554:11: error: no type named ‘type’ in ‘struct std::enable_if<false, void>’
 2554 |     using enable_if_t = typename enable_if<_Cond, _Tp>::type;
      |           ^~~~~~~~~~~
253.704 [45/23/3630] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILateBranchLowering.cpp.o
254.031 [45/22/3631] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/SILowerSGPRSpills.cpp.o
255.211 [45/21/3632] Building CXX object tools/llvm-nm/CMakeFiles/llvm-nm.dir/llvm-nm.cpp.o
255.422 [45/20/3633] Building CXX object lib/Target/AMDGPU/MCTargetDesc/CMakeFiles/LLVMAMDGPUDesc.dir/AMDGPUMCExpr.cpp.o

```

</details>

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


More information about the llvm-commits mailing list