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

           Summary: [AVX] vector shifts are scalarized
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Given:

define <8 x i32> @foo___ff(<8 x i32> %a, <8 x i32> %b) nounwind readnone {
  %s = shl <8 x i32> %a, <i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32
2>
  ret <8 x i32> %s
}

llc -mattr=+avx deconstructs the vector into elements, shifts each one
individually, and reconstructs the vector.  It'd be nice if it just used the
corresponding AVX vector shift instruction for this.

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