[llvm] [AMDGPU] SelectionDAG divergence tracking should take into account Target divergency. (PR #144947)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 3 10:05:11 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `clang-x86_64-linux-abi-test` running on `sie-linux-worker2` while building `llvm` at step 6 "build-unified-tree".

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

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

```
Step 6 (build-unified-tree) failure: build (failure)
...
In member function ‘void llvm::ContextAndReplaceableUses::makeReplaceable(std::unique_ptr<llvm::ReplaceableMetadataImpl>)’,
    inlined from ‘virtual void {anonymous}::ContextAndReplaceableUsesTest_makeReplaceable_Test::TestBody()’ at /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/IR/MetadataTest.cpp:55:22:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/IR/Metadata.h:1021:31: warning: ‘void operator delete(void*, std::size_t)’ called on unallocated object ‘Context’ [-Wfree-nonheap-object]
 1021 |     delete getReplaceableUses();
      |                               ^
/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/IR/MetadataTest.cpp: In member function ‘virtual void {anonymous}::ContextAndReplaceableUsesTest_makeReplaceable_Test::TestBody()’:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/IR/MetadataTest.cpp:53:15: note: declared here
   53 |   LLVMContext Context;
      |               ^~~~~~~
1325.618 [174/10/7059] Building CXX object unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SelectionDAGTest.cpp.o
FAILED: unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SelectionDAGTest.cpp.o 
/opt/ccache/bin/g++ -DGTEST_HAS_RTTI=0 -DLLVM_BUILD_STATIC -D_DEBUG -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/home/buildbot/buildbot-root/abi-test/build/unittests/Target/AArch64 -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/Target/AArch64 -I/home/buildbot/buildbot-root/abi-test/build/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/include -I/home/buildbot/buildbot-root/abi-test/llvm/llvm/lib/Target/AArch64 -I/home/buildbot/buildbot-root/abi-test/build/lib/Target/AArch64 -I/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googletest/include -I/home/buildbot/buildbot-root/abi-test/llvm/third-party/unittest/googlemock/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  -Wno-dangling-else -Wno-variadic-macros -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -Wno-suggest-override -std=c++17 -MD -MT unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SelectionDAGTest.cpp.o -MF unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SelectionDAGTest.cpp.o.d -o unittests/Target/AArch64/CMakeFiles/AArch64Tests.dir/AArch64SelectionDAGTest.cpp.o -c /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/Target/AArch64/AArch64SelectionDAGTest.cpp
/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/Target/AArch64/AArch64SelectionDAGTest.cpp: In member function ‘virtual void llvm::AArch64SelectionDAGTest::SetUp()’:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/Target/AArch64/AArch64SelectionDAGTest.cpp:65:14: error: no matching function for call to ‘llvm::SelectionDAG::init(llvm::MachineFunction&, llvm::OptimizationRemarkEmitter&, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, std::nullptr_t, llvm::MachineModuleInfo&, std::nullptr_t)’
   65 |     DAG->init(*MF, ORE, nullptr, nullptr, nullptr, nullptr, nullptr, MMI,
      |     ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   66 |               nullptr);
      |               ~~~~~~~~
In file included from /home/buildbot/buildbot-root/abi-test/llvm/llvm/unittests/Target/AArch64/AArch64SelectionDAGTest.cpp:13:
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/SelectionDAG.h:472:17: note: candidate: ‘void llvm::SelectionDAG::init(llvm::MachineFunction&, llvm::OptimizationRemarkEmitter&, llvm::Pass*, const llvm::TargetLibraryInfo*, llvm::UniformityInfo*, llvm::ProfileSummaryInfo*, llvm::BlockFrequencyInfo*, llvm::MachineModuleInfo&, const llvm::FunctionVarLocs*, bool)’
  472 |   LLVM_ABI void init(MachineFunction &NewMF, OptimizationRemarkEmitter &NewORE,
      |                 ^~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/SelectionDAG.h:472:17: note:   candidate expects 10 arguments, 9 provided
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/SelectionDAG.h:478:8: note: candidate: ‘void llvm::SelectionDAG::init(llvm::MachineFunction&, llvm::OptimizationRemarkEmitter&, llvm::MachineFunctionAnalysisManager&, const llvm::TargetLibraryInfo*, llvm::UniformityInfo*, llvm::ProfileSummaryInfo*, llvm::BlockFrequencyInfo*, llvm::MachineModuleInfo&, const llvm::FunctionVarLocs*, bool)’
  478 |   void init(MachineFunction &NewMF, OptimizationRemarkEmitter &NewORE,
      |        ^~~~
/home/buildbot/buildbot-root/abi-test/llvm/llvm/include/llvm/CodeGen/SelectionDAG.h:478:8: note:   candidate expects 10 arguments, 9 provided
1342.817 [174/2/7067] Building CXX object unittests/Target/AMDGPU/CMakeFiles/AMDGPUTests.dir/DwarfRegMappings.cpp.o
ninja: build stopped: subcommand failed.

```

</details>

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


More information about the llvm-commits mailing list