[llvm] Add a pass to collect dropped var stats for MIR (PR #120501)
LLVM Continuous Integration via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 19 00:50:49 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-nvptx-nvidia-ubuntu` running on `as-builder-7` while building `llvm` at step 5 "build-unified-tree".
Full details are available at: https://lab.llvm.org/buildbot/#/builders/180/builds/10351
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
72.928 [124/103/2474] Linking CXX executable bin/llvm-objdump
72.948 [123/103/2475] Generating ../../bin/llvm-otool
72.987 [123/102/2476] Linking CXX executable bin/llvm-ctxprof-util
72.987 [123/101/2477] Linking CXX executable bin/llvm-cxxmap
72.999 [123/100/2478] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXReplaceImageHandles.cpp.o
73.026 [123/99/2479] Linking CXX shared library lib/libLLVMCoverage.so.20.0git
73.043 [122/99/2480] Creating library symlink lib/libLLVMCoverage.so
73.079 [121/99/2481] Linking CXX executable bin/llvm-profdata
73.132 [121/98/2482] Linking CXX executable bin/llvm-cov
73.305 [121/97/2483] Linking CXX shared library lib/libLLVMAnalysis.so.20.0git
FAILED: lib/libLLVMAnalysis.so.20.0git
: && /usr/bin/c++ -fPIC -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 -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG -Wl,-z,defs -Wl,-z,nodelete -fuse-ld=gold -Wl,--gc-sections -shared -Wl,-soname,libLLVMAnalysis.so.20.0git -o lib/libLLVMAnalysis.so.20.0git lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AliasAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AliasAnalysisEvaluator.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AliasSetTracker.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Analysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AssumeBundleQueries.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/AssumptionCache.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/BasicAliasAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/BlockFrequencyInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/BlockFrequencyInfoImpl.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/BranchProbabilityInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CFG.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CFGPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CFGSCCPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CGSCCPassManager.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CallGraph.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CallGraphSCCPass.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CallPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CaptureTracking.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CmpInstAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CostModel.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CodeMetrics.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ConstantFolding.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CtxProfAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/CycleAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DDG.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DDGPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DroppedVariableStats.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ConstraintSystem.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Delinearization.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DemandedBits.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DependenceAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DependenceGraphBuilder.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DevelopmentModeInlineAdvisor.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DomConditionCache.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DomPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DomTreeUpdater.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DominanceFrontier.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DXILResource.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DXILMetadataAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/FunctionPropertiesAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/GlobalsModRef.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/GuardUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/HeatUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/IRSimilarityIdentifier.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/IVDescriptors.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/IVUsers.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ImportedFunctionsInliningStatistics.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/IndirectCallPromotionAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineCost.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineAdvisor.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineOrder.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InlineSizeEstimatorAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstCount.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionPrecedenceTracking.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InstructionSimplify.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/InteractiveModelRunner.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LastRunTrackingAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBranchProbabilityInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyBlockFrequencyInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyCallGraph.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LazyValueInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Lint.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Loads.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Local.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAccessAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopAnalysisManager.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopCacheAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopNestAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopUnrollAnalyzer.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/LoopPass.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MLInlineAdvisor.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemDerefPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryBuiltins.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryDependenceAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryLocation.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemoryProfileInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemorySSA.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MemorySSAUpdater.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModelUnderTrainingRunner.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleDebugInfoPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ModuleSummaryAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/MustExecute.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/NoInferenceModelRunner.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ObjCARCAliasAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ObjCARCAnalysisUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ObjCARCInstKind.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/OptimizationRemarkEmitter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/OverflowInstAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/PHITransAddr.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/PhiValues.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/PostDominators.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ProfileSummaryInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/PtrUseVisitor.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/RegionInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/RegionPass.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/RegionPrinter.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ReplayInlineAdvisor.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ScalarEvolution.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ScalarEvolutionAliasAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ScalarEvolutionDivision.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ScalarEvolutionNormalization.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/StackLifetime.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/StackSafetyAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/StructuralHash.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/SyntheticCountsUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TFLiteUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TargetLibraryInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TargetTransformInfo.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TensorSpec.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/Trace.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TrainingLogger.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TypeBasedAliasAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/TypeMetadataUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/UniformityAnalysis.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ScopedNoAliasAA.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueLattice.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueLatticeUtils.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/ValueTracking.cpp.o lib/Analysis/CMakeFiles/LLVMAnalysis.dir/VectorUtils.cpp.o -Wl,-rpath,"\$ORIGIN/../lib:/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib:" lib/libLLVMProfileData.so.20.0git lib/libLLVMObject.so.20.0git lib/libLLVMCore.so.20.0git lib/libLLVMBinaryFormat.so.20.0git lib/libLLVMTargetParser.so.20.0git lib/libLLVMSupport.so.20.0git -Wl,-rpath-link,/home/buildbot/worker/as-builder-7/ramdisk/llvm-nvptx-nvidia-ubuntu/build/lib && :
lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DroppedVariableStats.cpp.o:DroppedVariableStats.cpp:function llvm::DroppedVariableStatsMIR::runOnMachineFunction(llvm::MachineFunction const*, bool): error: undefined reference to 'llvm::MachineFunction::getName() const'
lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DroppedVariableStats.cpp.o:DroppedVariableStats.cpp:function llvm::DroppedVariableStatsMIR::calculateDroppedVarStatsOnMachineFunction(llvm::MachineFunction const*, llvm::StringRef, llvm::StringRef): error: undefined reference to 'llvm::MachineFunction::getName() const'
lib/Analysis/CMakeFiles/LLVMAnalysis.dir/DroppedVariableStats.cpp.o:DroppedVariableStats.cpp:function llvm::DroppedVariableStatsMIR::visitEveryDebugRecord(llvm::DenseSet<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void> >&, llvm::DenseMap<llvm::StringRef, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> >, llvm::DenseMapInfo<llvm::StringRef, void>, llvm::detail::DenseMapPair<llvm::StringRef, llvm::DenseMap<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*, llvm::DenseMapInfo<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, void>, llvm::detail::DenseMapPair<std::tuple<llvm::DIScope const*, llvm::DIScope const*, llvm::DILocalVariable const*>, llvm::DILocation*> > > >&, llvm::StringRef, bool) [clone .localalias]: error: undefined reference to 'llvm::MachineInstr::getDebugVariable() const'
collect2: error: ld returned 1 exit status
73.673 [121/96/2484] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/CodeViewDebug.cpp.o
74.426 [121/95/2485] Building CXX object lib/DWARFLinker/Classic/CMakeFiles/LLVMDWARFLinkerClassic.dir/DWARFLinker.cpp.o
74.435 [121/94/2486] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXFrameLowering.cpp.o
74.542 [121/93/2487] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
74.817 [121/92/2488] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXLowerArgs.cpp.o
75.553 [121/91/2489] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXSubtarget.cpp.o
75.721 [121/90/2490] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/IRTranslator.cpp.o
76.247 [121/89/2491] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/ThinLTOCodeGenerator.cpp.o
76.635 [121/88/2492] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXUtilities.cpp.o
77.336 [121/87/2493] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.o
77.386 [121/86/2494] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXISelDAGToDAG.cpp.o
77.593 [121/85/2495] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveDebugValues/InstrRefBasedImpl.cpp.o
77.762 [121/84/2496] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/LegalizerHelper.cpp.o
77.851 [121/83/2497] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/StandardInstrumentations.cpp.o
78.167 [121/82/2498] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
78.308 [121/81/2499] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceRegisterDefs.cpp.o
78.939 [121/80/2500] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86MachineFunctionInfo.cpp.o
79.011 [121/79/2501] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceInstructionsMIR.cpp.o
79.249 [121/78/2502] Building CXX object tools/llvm-reduce/CMakeFiles/llvm-reduce.dir/deltas/ReduceIRReferences.cpp.o
79.263 [121/77/2503] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DwarfDebug.cpp.o
79.725 [121/76/2504] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstrFoldTables.cpp.o
80.268 [121/75/2505] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXTargetTransformInfo.cpp.o
80.450 [121/74/2506] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXAsmPrinter.cpp.o
80.626 [121/73/2507] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXISelLowering.cpp.o
81.326 [121/72/2508] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/CombinerHelper.cpp.o
81.523 [121/71/2509] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86InstrFMA3Info.cpp.o
81.732 [121/70/2510] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86FixupSetCC.cpp.o
82.009 [121/69/2511] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXTargetMachine.cpp.o
82.207 [121/68/2512] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86CmovConversion.cpp.o
82.369 [121/67/2513] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86MacroFusion.cpp.o
82.393 [121/66/2514] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86SpeculativeExecutionSideEffectSuppression.cpp.o
82.609 [121/65/2515] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86FastTileConfig.cpp.o
82.647 [121/64/2516] Building CXX object lib/Target/X86/CMakeFiles/LLVMX86CodeGen.dir/X86LoadValueInjectionRetHardening.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/120501
More information about the llvm-commits
mailing list