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

            Bug ID: 18890
           Summary: Lowering of atomic ops doesn't reuse registers
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

Created attachment 12084
  --> http://llvm.org/bugs/attachment.cgi?id=12084&action=edit
Test case

Compile the attached test program with -O2 for amd64. Observe that the assembly
is not using known zero value of %rax for the xchg, but creating a new register
for that purpose.

Problem applies to other __sync_* builtins as well.

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