[llvm] [GlobalISel] Allow expansion of urem by constant in prelegalizer (PR #145914)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 2 05:50:53 PDT 2025
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `clang-hip-vega20` running on `hip-vega20-0` while building `llvm` at step 3 "annotate".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/123/builds/22494
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 3 (annotate) failure: '../llvm-zorg/zorg/buildbot/builders/annotated/hip-build.sh --jobs=' (failure)
...
[71/158] Linking CXX executable bin/llvm-size
[72/158] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUCombinerHelper.cpp.o
[73/158] Linking CXX executable bin/llvm-rtdyld
[74/158] Linking CXX executable bin/llvm-tli-checker
[75/158] Linking CXX executable bin/clang-installapi
[76/158] Linking CXX executable bin/llvm-xray
[77/158] Linking CXX executable bin/clang-move
[78/158] Linking CXX executable bin/clang-diff
[79/158] Linking CXX executable bin/llvm-symbolizer
[80/158] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o
ccache /usr/bin/c++ -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/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp:86:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc: In lambda function:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc:3077: error: ‘const class llvm::AMDGPUCombinerHelper’ has no member named ‘matchUDivByConst’; did you mean ‘matchSDivByConst’?
3077 | if(![&](){return Helper.matchUDivByConst(*State.MIs[0]);}()) {
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp:86:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc: In member function ‘virtual bool {anonymous}::AMDGPUPreLegalizerCombinerImpl::runCustomAction(unsigned int, const llvm::GIMatchTableExecutor::MatcherState&, llvm::GIMatchTableExecutor::NewMIVector&) const’:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc:3081: error: ‘const class llvm::AMDGPUCombinerHelper’ has no member named ‘applyUDivByConst’; did you mean ‘applySDivByConst’?
3081 | Helper.applyUDivByConst(*State.MIs[0]);
|
[81/158] Generating ../../bin/llvm-addr2line
[82/158] Linking CXX executable bin/obj2yaml
[83/158] Linking CXX executable bin/sanstats
[84/158] Linking CXX executable bin/clang-doc
[85/158] Linking CXX executable bin/clang-refactor
[86/158] Linking CXX executable bin/clang-include-cleaner
[87/158] Linking CXX executable bin/find-all-symbols
[88/158] Linking CXX executable bin/sancov
[89/158] Linking CXX executable bin/clang-change-namespace
[90/158] Linking CXX executable bin/pp-trace
[91/158] Linking CXX executable bin/clang-include-fixer
[92/158] Linking CXX executable bin/clang-reorder-fields
[93/158] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o
ccache /usr/bin/c++ -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/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:126:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc: In lambda function:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc:3146: error: ‘class llvm::AMDGPUCombinerHelper’ has no member named ‘matchUDivByConst’; did you mean ‘matchSDivByConst’?
3146 | if(![&](){return Helper.matchUDivByConst(*State.MIs[0]);}()) {
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:126:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc: In member function ‘virtual bool {anonymous}::AMDGPUPostLegalizerCombinerImpl::runCustomAction(unsigned int, const llvm::GIMatchTableExecutor::MatcherState&, llvm::GIMatchTableExecutor::NewMIVector&) const’:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc:3150: error: ‘class llvm::AMDGPUCombinerHelper’ has no member named ‘applyUDivByConst’; did you mean ‘applySDivByConst’?
3150 | Helper.applyUDivByConst(*State.MIs[0]);
|
[94/158] Linking CXX executable bin/tool-template
[95/158] Linking CXX executable bin/modularize
Step 7 (Building LLVM) failure: Building LLVM (failure)
...
[71/158] Linking CXX executable bin/llvm-size
[72/158] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUCombinerHelper.cpp.o
[73/158] Linking CXX executable bin/llvm-rtdyld
[74/158] Linking CXX executable bin/llvm-tli-checker
[75/158] Linking CXX executable bin/clang-installapi
[76/158] Linking CXX executable bin/llvm-xray
[77/158] Linking CXX executable bin/clang-move
[78/158] Linking CXX executable bin/clang-diff
[79/158] Linking CXX executable bin/llvm-symbolizer
[80/158] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o
ccache /usr/bin/c++ -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/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPreLegalizerCombiner.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp:86:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc: In lambda function:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc:3077: error: ‘const class llvm::AMDGPUCombinerHelper’ has no member named ‘matchUDivByConst’; did you mean ‘matchSDivByConst’?
3077 | if(![&](){return Helper.matchUDivByConst(*State.MIs[0]);}()) {
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPreLegalizerCombiner.cpp:86:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc: In member function ‘virtual bool {anonymous}::AMDGPUPreLegalizerCombinerImpl::runCustomAction(unsigned int, const llvm::GIMatchTableExecutor::MatcherState&, llvm::GIMatchTableExecutor::NewMIVector&) const’:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPreLegalizeGICombiner.inc:3081: error: ‘const class llvm::AMDGPUCombinerHelper’ has no member named ‘applyUDivByConst’; did you mean ‘applySDivByConst’?
3081 | Helper.applyUDivByConst(*State.MIs[0]);
|
[81/158] Generating ../../bin/llvm-addr2line
[82/158] Linking CXX executable bin/obj2yaml
[83/158] Linking CXX executable bin/sanstats
[84/158] Linking CXX executable bin/clang-doc
[85/158] Linking CXX executable bin/clang-refactor
[86/158] Linking CXX executable bin/clang-include-cleaner
[87/158] Linking CXX executable bin/find-all-symbols
[88/158] Linking CXX executable bin/sancov
[89/158] Linking CXX executable bin/clang-change-namespace
[90/158] Linking CXX executable bin/pp-trace
[91/158] Linking CXX executable bin/clang-include-fixer
[92/158] Linking CXX executable bin/clang-reorder-fields
[93/158] Building CXX object lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o
FAILED: lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o
ccache /usr/bin/c++ -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/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU -I/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/include -I/home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/include -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-time -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -fvisibility=hidden -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o -MF lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o.d -o lib/Target/AMDGPU/CMakeFiles/LLVMAMDGPUCodeGen.dir/AMDGPUPostLegalizerCombiner.cpp.o -c /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:126:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc: In lambda function:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc:3146: error: ‘class llvm::AMDGPUCombinerHelper’ has no member named ‘matchUDivByConst’; did you mean ‘matchSDivByConst’?
3146 | if(![&](){return Helper.matchUDivByConst(*State.MIs[0]);}()) {
|
In file included from /home/botworker/bbot/clang-hip-vega20/llvm-project/llvm/lib/Target/AMDGPU/AMDGPUPostLegalizerCombiner.cpp:126:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc: In member function ‘virtual bool {anonymous}::AMDGPUPostLegalizerCombinerImpl::runCustomAction(unsigned int, const llvm::GIMatchTableExecutor::MatcherState&, llvm::GIMatchTableExecutor::NewMIVector&) const’:
/home/botworker/bbot/clang-hip-vega20/botworker/clang-hip-vega20/llvm/lib/Target/AMDGPU/AMDGPUGenPostLegalizeGICombiner.inc:3150: error: ‘class llvm::AMDGPUCombinerHelper’ has no member named ‘applyUDivByConst’; did you mean ‘applySDivByConst’?
3150 | Helper.applyUDivByConst(*State.MIs[0]);
|
[94/158] Linking CXX executable bin/tool-template
[95/158] Linking CXX executable bin/modularize
```
</details>
https://github.com/llvm/llvm-project/pull/145914
More information about the llvm-commits
mailing list