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

           Summary: Optimise mov -1, reg to or
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


[Using AT&T syntax]

The code generator should consider the following transformation:

movl $-1, %eax ==> orl $-1, %eax
movq $-1, %rax ==> orq $-1, %rax

This save 2 (3) Bytes at the cost of a partial dependency on the flags and the
old register state.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to