[LLVMbugs] [Bug 17784] New: Large contant materialized twice

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat Nov 2 11:18:06 PDT 2013


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

            Bug ID: 17784
           Summary: Large contant materialized twice
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Common Code Generator Code
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified

Given

#include <stdint.h>
uint64_t val, *p;
extern uint64_t xtr( uint64_t);

uint64_t caller() {
        uint64_t x;
        p = &val;
        x = 12345123400L;
        *p = x;
        return xtr(x);
}

clang produces

    movq    %rax, (%rcx)
    movabsq    $12345123400, %rcx      ## imm = 0x2DFD3A248
    movq    %rcx, (%rax)
    movabsq    $12345123400, %rdi      ## imm = 0x2DFD3A248


There was a thread about this bug in:

http://lists.cs.uiuc.edu/pipermail/llvmdev/2013-August/064535.html

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20131102/6592941d/attachment.html>


More information about the llvm-bugs mailing list