http://llvm.org/bugs/show_bug.cgi?id=17876

            Bug ID: 17876
           Summary: TailDuplicate makes bad assumption about SSA form
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 11508
  --> http://llvm.org/bugs/attachment.cgi?id=11508&action=edit
Repro for TailDuplicate assert failure

During late machine code optimization with NVPTX, the following code in
TailDuplicate.cpp may be hit:

236├>      MachineInstr *DefMI = MRI->getVRegDef(VReg);

MachineRegisterInfo::getVRegDef() assumes SSA form, but when running
TailDuplicate MRI->isSSA() is false.

For repro, the attached .ll file can be used with the nvptx target with the
following change to NVPTXTargetMachine.cpp:

1. Remove "disablePass(&TailDuplicateID);"

The TailDuplicate pass is currently disabled in NVPTX for a few reasons,
including this one.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to