[LLVMbugs] [Bug 1298] NEW: ARM bad code: constants materialization inside loops

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Sat Mar 31 20:54:35 PDT 2007


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

           Summary: ARM bad code: constants materialization inside loops
           Product: new-bugs
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: lauro.venancio at gmail.com


code generated for sieve test:

        mov r2, #0
        ldr r1, .LCPI1_0
.LBB1_3:        @bb7
        add r0, r1, r2
        mov r12, #1
        strb r12, [r0, #+2]
        add r2, r2, #1
        mov r0, #255
        orr r0, r0, #31, 24 @ 7936
        cmp r2, r0
        bne .LBB1_3     @bb7

can be:

        mov r2, #0
        ldr r1, .LCPI1_0
        mov r12, #1
        mov r0, #255
        orr r0, r0, #31, 24 @ 7936
.LBB1_3:        @bb7
        add r3, r1, r2
        strb r12, [r3, #+2]
        add r2, r2, #1
        cmp r2, r0
        bne .LBB1_3     @bb7



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



More information about the llvm-bugs mailing list