[LLVMbugs] [Bug 2794] New: ISD:: SIGN_EXTEND_INREG added during Legalization and not Legalized

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sun Sep 14 09:01:25 PDT 2008


           Summary: ISD::SIGN_EXTEND_INREG added during Legalization and not
           Product: new-bugs
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rich at pennware.com
                CC: llvmbugs at cs.uiuc.edu

LegalizeDAG.cpp adds a ISD::SIGN_EXTEND_INREG node during promotion but doesn't
make sure to verify that the resulting DAG is legal for the target.

The fix is:

Index: LegalizeDAG.cpp
--- LegalizeDAG.cpp     (revision 56194)
+++ LegalizeDAG.cpp     (working copy)
@@ -4670,6 +4670,8 @@
         Tmp2 = DAG.getNode(ISD::SIGN_EXTEND_INREG, NVT, Tmp2,
+        Tmp1 = LegalizeOp(Tmp1);
+        Tmp2 = LegalizeOp(Tmp2);

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