[LLVMbugs] [Bug 13269] New: incorrect debug location info in	ConstantSDNodes
    bugzilla-daemon at llvm.org 
    bugzilla-daemon at llvm.org
       
    Wed Jul  4 05:47:15 PDT 2012
    
    
  
http://llvm.org/bugs/show_bug.cgi?id=13269
             Bug #: 13269
           Summary: incorrect debug location info in ConstantSDNodes
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: Windows NT
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jyoti.allur at samsung.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified
Dear LLVM Developers,
Recently observed that incorrect debug location info is marked in assembly for
instructions that copy constant value into general registers. 
for example:
movs    r2, #3
movs    r0, #7  
type of instructions.
On further debugging found that the SDNodes created for such instructions in
DAG
do not carry any debug location info. Infact, ConstantSDNode constructor resets
it to unknown location via DebugLoc().
We can update correct debug location in such SDNodes if 
SDValue SelectionDAG::getConstant(const ConstantInt &Val, EVT VT, bool isT)
is changed to 
SDValue SelectionDAG::getConstant(const ConstantInt &Val, EVT VT, bool isT,
DebugLoc DL)
Appreciate any feedback on this.
-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
    
    
More information about the llvm-bugs
mailing list