[LLVMbugs] [Bug 14704] New: VANDPSYrr does not fold to VANDPSYrm

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Dec 23 22:46:27 PST 2012


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

             Bug #: 14704
           Summary: VANDPSYrr does not fold to VANDPSYrm
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: Backend: X86
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nrotem at apple.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I am not sure why this happens, but LLVM generates this code:

vmovups (%rax,%r10), %ymm0 
vmovups (%rax,%rcx), %ymm1 
vandps  %ymm0, %ymm1, %ymm0
vmovups %ymm0, (%rax,%rdx)

while it can fold one of the loads into the vandps instruction like this:

vandps  (%rax,%rcx), %ymm1, %ymm0

I looked and VANDPSYrr is in the folding table.

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



More information about the llvm-bugs mailing list