[llvm-bugs] [Bug 30772] New: Inefficient codegen

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Oct 24 10:28:46 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=30772

            Bug ID: 30772
           Summary: Inefficient codegen
           Product: libraries
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Backend: X86
          Assignee: unassignedbugs at nondot.org
          Reporter: rafael.espindola at gmail.com
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

In the attached testcase we produce

        movq    %rax, %rcx
        shlq    $6, %rcx
        prefetcht0      (%rdi,%rcx)
        movq    %rax, %rcx
        shlq    $4, %rcx

We could produce

        movq    %rax, %rcx
        shlq    $4, %rcx
        prefetcht0      (%rdi,%rcx, 4)

-- 
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/20161024/aec669de/attachment.html>


More information about the llvm-bugs mailing list