You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Try disabling frame pointer elimination/enabling unwind tables to get backtraces #3957
bug 🐞Something isn't workingcodegen/llvmLLVM code generation compiler backendperformance ⚡Performance/optimization related work across the compiler and runtime
That may be enough to replicate in UnixLinkerTools' configureModule - if it is, then we can make that common to both in the base LinkerTool class.
That may not work - my experience with DWARF is 10 years out of date so I have no idea if they even have unwind tables ;)
The other thing to try then is disabling frame pointer elimination, by adding this in the same configureModule function:
for (auto &func : *llvmModule) {
auto attrs = func.getAttributes();
attrs = attrs.addAttribute(llvmModule->getContext(),
llvm::AttributeList::FunctionIndex,
"frame-pointer", "all");
func.setAttributes(attrs);
}
With this you should see on x86 some ebp manipulation at the start/end of each generated functions and hopefully some stack traces. Not sure what the equivalent to look for on arm is but I'm sure you do :)
The unwind tables are ideal as they don't change the code at all and are easy to strip (they're just extra sections in the final output) - but if we need the frame pointers to debug they are very cheap (~bytes/function) and worth always including on UnixLinkerTool.
bug 🐞Something isn't workingcodegen/llvmLLVM code generation compiler backendperformance ⚡Performance/optimization related work across the compiler and runtime
Activity