https://llvm.org/bugs/show_bug.cgi?id=31310

            Bug ID: 31310
           Summary: SROA fails to propagate debug location annotation
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Scalar Optimizations
          Assignee: unassignedb...@nondot.org
          Reporter: ane...@apple.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 17734
  --> https://llvm.org/bugs/attachment.cgi?id=17734&action=edit
testcase

The testcase s.ll demonstrates the problem.  The phis generated by SROA carry
no debug location MD:

/org/llvm/build$ grep phi s.ll
/org/llvm/build$ ./bin/opt -sroa s.ll -S | grep phi
  %a.addr.0 = phi i32 [ %a, %entry ], [ %0, %for.inc ]
  %i.0 = phi i32 [ 0, %entry ], [ %inc, %for.inc ]

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to