[llvm] CodeGen: Eliminate dynamic relocations in the register superclass tables. (PR #119122)

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 16:41:52 PST 2024


vitalybuka wrote:

I see those as well

```
/tmp/bot/llvm-project/llvm/lib/Target/X86/X86RegisterInfo.cpp:177:5: runtime error: applying non-zero offset 4 to null pointer
    #0 0x555b8c2b4bd2 in llvm::X86RegisterInfo::getLargestLegalSuperClass(llvm::TargetRegisterClass const*, llvm::MachineFunction const&) const /tmp/bot/llvm-project/llvm/lib/Target/X86/X86RegisterInfo.cpp:177:5
    #1 0x555b8da1d57d in llvm::RegisterClassInfo::compute(llvm::TargetRegisterClass const*) const /tmp/bot/llvm-project/llvm/lib/CodeGen/RegisterClassInfo.cpp:181:16
    #2 0x555b8da1e63b in llvm::RegisterClassInfo::computePSetLimit(unsigned int) const /tmp/bot/llvm-project/llvm/lib/CodeGen/RegisterClassInfo.cpp:223:3
    #3 0x555b8d5f963c in llvm::RegisterClassInfo::getRegPressureSetLimit(unsigned int) const /tmp/bot/llvm-project/llvm/include/llvm/CodeGen/RegisterClassInfo.h:148:25
    #4 0x555b8d5f61ef in llvm::ScheduleDAGMILive::initRegPressure() /tmp/bot/llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:1312:36
    #5 0x555b8d5fb60c in llvm::ScheduleDAGMILive::schedule() /tmp/bot/llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:1459:3
    #6 0x555b8d629ab4 in (anonymous namespace)::MachineSchedulerBase::scheduleRegions(llvm::ScheduleDAGInstrs&, bool) /tmp/bot/llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:650:17
    #7 0x555b8d627618 in (anonymous namespace)::MachineScheduler::runOnMachineFunction(llvm::MachineFunction&) /tmp/bot/llvm-project/llvm/lib/CodeGen/MachineScheduler.cpp:463:3
    #8 0x555b8d430881 in llvm::MachineFunctionPass::runOnFunction(llvm::Function&) /tmp/bot/llvm-project/llvm/lib/CodeGen/MachineFunctionPass.cpp:94:13
    #9 0x555b8e36b1c3 in llvm::FPPassManager::runOnFunction(llvm::Function&) /tmp/bot/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1406:27
    #10 0x555b8e38227e in llvm::FPPassManager::runOnModule(llvm::Module&) /tmp/bot/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1452:16
    #11 0x555b8e36cdba in runOnModule /tmp/bot/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:1521:27
    #12 0x555b8e36cdba in llvm::legacy::PassManagerImpl::run(llvm::Module&) /tmp/bot/llvm-project/llvm/lib/IR/LegacyPassManager.cpp:539:44
    #13 0x555b90a72efb in RunCodegenPipeline /tmp/bot/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1197:19
    #14 0x555b90a72efb in EmitAssembly /tmp/bot/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1220:3
    #15 0x555b90a72efb in clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::HeaderSearchOptions const&, clang::CodeGenOptions const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::StringRef, llvm::Module*, clang::BackendAction, llvm::IntrusiveRefCntPtr<llvm::vfs::FileSystem>, std::__1::unique_ptr<llvm::raw_pwrite_stream, std::__1::default_delete<llvm::raw_pwrite_stream>>, clang::BackendConsumer*) /tmp/bot/llvm-project/clang/lib/CodeGen/BackendUtil.cpp:1383:13
    #16 0x555b90adb00e in clang::CodeGenAction::ExecuteAction() /tmp/bot/llvm-project/clang/lib/CodeGen/CodeGenAction.cpp:1217:3
    #17 0x555b9149559c in clang::FrontendAction::Execute() /tmp/bot/llvm-project/clang/lib/Frontend/FrontendAction.cpp:1077:8
    #18 0x555b9138a94d in clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) /tmp/bot/llvm-project/clang/lib/Frontend/CompilerInstance.cpp:1062:33
    #19 0x555b9175ef91 in clang::ExecuteCompilerInvocation(clang::CompilerInstance*) /tmp/bot/llvm-project/clang/lib/FrontendTool/ExecuteCompilerInvocation.cpp:296:25
    #20 0x555b886f825f in cc1_main(llvm::ArrayRef<char const*>, char const*, void*) /tmp/bot/llvm-project/clang/tools/driver/cc1_main.cpp:286:15
    #21 0x555b886ed85b in ExecuteCC1Tool(llvm::SmallVectorImpl<char const*>&, llvm::ToolContext const&) /tmp/bot/llvm-project/clang/tools/driver/driver.cpp:218:12
    #22 0x555b886ebaa4 in clang_main(int, char**, llvm::ToolContext const&) /tmp/bot/llvm-project/clang/tools/driver/driver.cpp:259:12
```

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


More information about the llvm-commits mailing list