[llvm] [CGData] Refactor Global Merge Functions (PR #115750)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 21:29:03 PST 2024


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `llvm-x86_64-debian-dylib` running on `gribozavr4` while building `llvm` at step 5 "build-unified-tree".

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

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

```
Step 5 (build-unified-tree) failure: build (failure)
...
12.445 [3554/96/3393] Building CXX object lib/Target/VE/CMakeFiles/LLVMVECodeGen.dir/VVPISelLowering.cpp.o
12.446 [3553/96/3394] Building CXX object lib/Target/VE/AsmParser/CMakeFiles/LLVMVEAsmParser.dir/VEAsmParser.cpp.o
12.447 [3552/96/3395] Building CXX object lib/Target/VE/Disassembler/CMakeFiles/LLVMVEDisassembler.dir/VEDisassembler.cpp.o
12.447 [3551/96/3396] Building CXX object lib/Target/VE/TargetInfo/CMakeFiles/LLVMVEInfo.dir/VETargetInfo.cpp.o
12.448 [3550/96/3397] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEAsmBackend.cpp.o
12.449 [3549/96/3398] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEELFObjectWriter.cpp.o
12.449 [3548/96/3399] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEInstPrinter.cpp.o
12.450 [3547/96/3400] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEMCAsmInfo.cpp.o
12.451 [3546/96/3401] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEMCExpr.cpp.o
12.452 [3545/96/3402] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o
FAILED: lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o 
CCACHE_CPP2=yes CCACHE_HASHDIR=yes /usr/bin/ccache /usr/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/b/1/llvm-x86_64-debian-dylib/build/lib/CodeGen -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen -I/b/1/llvm-x86_64-debian-dylib/build/include -I/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/include -fPIC -fvisibility-inlines-hidden -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  -fno-exceptions -funwind-tables -fno-rtti -UNDEBUG -std=c++17 -MD -MT lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o -MF lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o.d -o lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/GlobalMergeFunctions.cpp.o -c /b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/GlobalMergeFunctions.cpp
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/GlobalMergeFunctions.cpp:450:34: error: reference to local binding 'FI' declared in enclosing function 'llvm::GlobalMergeFunc::merge'
              assert(InstIndex < FI.IndexInstruction->size());
                                 ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/GlobalMergeFunctions.cpp:440:20: note: 'FI' declared here
    for (auto &[F, FI] : Funcs) {
                   ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/GlobalMergeFunctions.cpp:451:28: error: reference to local binding 'FI' declared in enclosing function 'llvm::GlobalMergeFunc::merge'
              auto *Inst = FI.IndexInstruction->lookup(InstIndex);
                           ^
/b/1/llvm-x86_64-debian-dylib/llvm-project/llvm/lib/CodeGen/GlobalMergeFunctions.cpp:440:20: note: 'FI' declared here
    for (auto &[F, FI] : Funcs) {
                   ^
2 errors generated.
12.453 [3545/95/3403] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEMCCodeEmitter.cpp.o
12.453 [3545/94/3404] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VEMCTargetDesc.cpp.o
12.453 [3545/93/3405] Building CXX object lib/Target/VE/MCTargetDesc/CMakeFiles/LLVMVEDesc.dir/VETargetStreamer.cpp.o
12.454 [3545/92/3406] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyAddMissingPrototypes.cpp.o
12.454 [3545/91/3407] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyArgumentMove.cpp.o
12.455 [3545/90/3408] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyAsmPrinter.cpp.o
12.455 [3545/89/3409] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCFGStackify.cpp.o
12.456 [3545/88/3410] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCleanCodeAfterTrap.cpp.o
12.456 [3545/87/3411] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyCFGSort.cpp.o
12.457 [3545/86/3412] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyDebugFixup.cpp.o
12.457 [3545/85/3413] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyDebugValueManager.cpp.o
12.457 [3545/84/3414] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyLateEHPrepare.cpp.o
12.458 [3545/83/3415] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyExceptionInfo.cpp.o
12.458 [3545/82/3416] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyExplicitLocals.cpp.o
12.459 [3545/81/3417] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyFastISel.cpp.o
12.459 [3545/80/3418] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyFixBrTableDefaults.cpp.o
12.460 [3545/79/3419] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyFixIrreducibleControlFlow.cpp.o
12.460 [3545/78/3420] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyFixFunctionBitcasts.cpp.o
12.460 [3545/77/3421] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyFrameLowering.cpp.o
12.461 [3545/76/3422] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyISelDAGToDAG.cpp.o
12.461 [3545/75/3423] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyISelLowering.cpp.o
12.462 [3545/74/3424] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyInstrInfo.cpp.o
12.462 [3545/73/3425] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyLowerBrUnless.cpp.o
12.463 [3545/72/3426] Building CXX object lib/Target/WebAssembly/CMakeFiles/LLVMWebAssemblyCodeGen.dir/WebAssemblyLowerEmscriptenEHSjLj.cpp.o

```

</details>

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


More information about the llvm-commits mailing list