[llvm-dev] [GSoC][DebugInfo] SROA debug experience and dexter thoughts
Greg Bedwell via llvm-dev
llvm-dev at lists.llvm.org
Fri Jun 8 08:10:41 PDT 2018
Thanks for this writeup!
Passes that move code around or shorten the execution paths like SROA
> and LICM should go to great lengths to preserve the debug intrinsics
> that correspond the the name and value of the variables. It would be
> an unrealistic goal to try and keep the stepping behavior inside a
> debugger intact after running such passes.
> Instead, different optimization methods can be used when debugging is a
> high priority. Ones that don't move code around as much and of course
> result in longer execution times, but what they lose in speed they
> give back with a more robust debug experience.
Absolutely. I think we should make -O2/-O3 as debugable as possible
without sacrificing performance, and then whatever is left becomes a prime
candidate for assessing whether we can get away with turning it off or
turning it down for -Og.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev