[LLVMdev] Why variables get "optimized away" after the last use in unoptimized code?

Yuri yuri at rawbw.com
Sun Feb 2 12:07:09 PST 2014


On 02/02/2014 01:11, Yuri wrote:
> 'this' should exist through this subprogram, and never disappear. But 
> it becomes "optimized away" after the last explicit use. Same is true 
> with any other variable.
> Doesn't this mean that llvm generates wrong DWARF info?
> I don't think that debugger should ever say <optimized out> in 
> unoptimized code.


I submitted the issue with my proposal: 
http://llvm.org/bugs/show_bug.cgi?id=18697

Yuri



More information about the llvm-dev mailing list