[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:47:54 PST 2024
llvm-ci wrote:
LLVM Buildbot has detected a new failure on builder `llvm-nvptx64-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/160/builds/10353
<details>
<summary>Here is the relevant piece of the build log for the reference</summary>
```
Step 5 (build-unified-tree) failure: build (failure)
...
71.468 [389/42/2270] Building CXX object lib/DWARFLinker/Parallel/CMakeFiles/LLVMDWARFLinkerParallel.dir/DWARFLinkerCompileUnit.cpp.o
71.473 [389/41/2271] Generating ../../bin/llvm-addr2line
71.537 [389/40/2272] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/Utils.cpp.o
71.543 [389/39/2273] Linking CXX executable bin/llvm-cxxmap
71.548 [389/38/2274] Linking CXX executable bin/llvm-ctxprof-util
71.562 [389/37/2275] Linking CXX shared library lib/libLLVMCoverage.so.20.0git
71.571 [388/37/2276] Linking CXX executable bin/llvm-profdata
71.583 [388/36/2277] Creating library symlink lib/libLLVMCoverage.so
71.690 [387/36/2278] Linking CXX executable bin/llvm-cov
71.940 [387/35/2279] 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-nvptx64-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-nvptx64-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
72.219 [387/34/2280] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/PassBuilderBindings.cpp.o
72.451 [387/33/2281] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXFrameLowering.cpp.o
72.610 [387/32/2282] Building CXX object lib/DWARFLinker/Parallel/CMakeFiles/LLVMDWARFLinkerParallel.dir/DWARFLinkerTypeUnit.cpp.o
72.692 [387/31/2283] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXInstrInfo.cpp.o
72.707 [387/30/2284] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXPeephole.cpp.o
72.829 [387/29/2285] Building X86GenInstrInfo.inc...
73.044 [387/28/2286] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXRegisterInfo.cpp.o
73.675 [387/27/2287] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXSubtarget.cpp.o
74.043 [387/26/2288] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXUtilities.cpp.o
74.235 [387/25/2289] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/SelectionDAGISel.cpp.o
74.345 [387/24/2290] Building CXX object lib/DWARFLinker/Parallel/CMakeFiles/LLVMDWARFLinkerParallel.dir/DWARFLinkerImpl.cpp.o
74.447 [387/23/2291] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXLowerArgs.cpp.o
74.589 [387/22/2292] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXReplaceImageHandles.cpp.o
74.841 [387/21/2293] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/CodeViewDebug.cpp.o
75.172 [387/20/2294] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/IRTranslator.cpp.o
75.363 [387/19/2295] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTOBackend.cpp.o
75.485 [387/18/2296] Building CXX object lib/DWARFLinker/Classic/CMakeFiles/LLVMDWARFLinkerClassic.dir/DWARFLinker.cpp.o
75.550 [387/17/2297] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/AsmPrinter.cpp.o
76.273 [387/16/2298] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/LegalizerHelper.cpp.o
76.378 [387/15/2299] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXTargetTransformInfo.cpp.o
76.941 [387/14/2300] Building CXX object lib/CodeGen/AsmPrinter/CMakeFiles/LLVMAsmPrinter.dir/DwarfDebug.cpp.o
76.971 [387/13/2301] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/ThinLTOCodeGenerator.cpp.o
77.134 [387/12/2302] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/TargetLowering.cpp.o
77.352 [387/11/2303] Building CXX object lib/CodeGen/CMakeFiles/LLVMCodeGen.dir/LiveDebugValues/InstrRefBasedImpl.cpp.o
77.443 [387/10/2304] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXISelDAGToDAG.cpp.o
78.084 [387/9/2305] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXISelLowering.cpp.o
78.106 [387/8/2306] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXAsmPrinter.cpp.o
78.588 [387/7/2307] Building CXX object lib/CodeGen/GlobalISel/CMakeFiles/LLVMGlobalISel.dir/CombinerHelper.cpp.o
79.502 [387/6/2308] Building CXX object lib/Passes/CMakeFiles/LLVMPasses.dir/StandardInstrumentations.cpp.o
79.653 [387/5/2309] Building CXX object lib/LTO/CMakeFiles/LLVMLTO.dir/LTO.cpp.o
80.390 [387/4/2310] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/SelectionDAG.cpp.o
80.724 [387/3/2311] Building CXX object lib/Target/NVPTX/CMakeFiles/LLVMNVPTXCodeGen.dir/NVPTXTargetMachine.cpp.o
88.017 [387/2/2312] Building CXX object lib/CodeGen/SelectionDAG/CMakeFiles/LLVMSelectionDAG.dir/SelectionDAGBuilder.cpp.o
```
</details>
https://github.com/llvm/llvm-project/pull/120501
More information about the llvm-commits
mailing list