[llvm-bugs] [Bug 45407] New: DebugInfo: Excess location lifetime over a function call
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Thu Apr  2 18:54:18 PDT 2020
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=45407
            Bug ID: 45407
           Summary: DebugInfo: Excess location lifetime over a function
                    call
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: DebugInfo
          Assignee: unassignedbugs at nondot.org
          Reporter: dblaikie at gmail.com
                CC: cmtice at google.com, i at maskray.me,
                    jdevlieghere at apple.com, keith.walker at arm.com,
                    llvm-bugs at lists.llvm.org,
                    paul_robinson at playstation.sony.com
            Blocks: 31268
void f2(int);
extern int x;
void f1(int i) {
  i = x;
  f2(i);
}
Compiled with optimizations enabled, this produces DWARF describing the
location of 'i' in RDI for the full scope of 'f1', including during the
execution of 'f2'. This seems to be incorrect, since it's a caller saved
register - f2 could modify RDI (& would have to if it wanted to call another
function for instance)
Referenced Bugs:
https://bugs.llvm.org/show_bug.cgi?id=31268
[Bug 31268] Umbrella: debug info for optimized code
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200403/7abfb791/attachment.html>
    
    
More information about the llvm-bugs
mailing list