[LLVMbugs] [Bug 4965] New: Invalid register assignment due to regclass copy coalesced away

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Sep 12 15:24:19 PDT 2009


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

           Summary: Invalid register assignment due to regclass copy
                    coalesced away
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Common Code Generator Code
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: asl at math.spbu.ru
                CC: llvmbugs at cs.uiuc.edu


Created an attachment (id=3502)
 --> (http://llvm.org/bugs/attachment.cgi?id=3502)
.ll file

Consider the bytecode attached. Currently it fails due to invalid subreg index
(there is on 32-bit subreg of Q8 reG) despite of explicit copy_to_regclass
node.

It seems the cross-regclass copy is removed during 2addr instruction pass:

        %reg1063<def> = INSERT_SUBREG %reg1061, %reg1062, 4
        prepend:        %reg1063<def> = VMOVQ %reg1061
        rewrite to:     %reg1063<def> = INSERT_SUBREG %reg1063, %reg1062, 4


-- 
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