[PATCH] [X86][SSE] Improve legal SHUFP and PSHUFD shuffle matching
Simon Pilgrim
llvm-dev at redking.me.uk
Sat Nov 15 08:07:47 PST 2014
Hi andreadb, chandlerc,
Updated X86TargetLowering::isShuffleMaskLegal to match SHUFP masks with commuted inputs and PSHUFD masks that reference the second input.
As part of this I've refactored isPSHUFDMask to work in a more general manner and allow it to match against either the first or second input vector.
As discussed with Andrea, further changes should probably wait until the old shuffle lowering code is dropped, but these initial changes were beneficial and easy to isolate.
http://reviews.llvm.org/D6287
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vector-shuffle-256-v4.ll
test/CodeGen/X86/vector-shuffle-combining.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6287.16267.patch
Type: text/x-patch
Size: 10577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141115/b2178f14/attachment.bin>
More information about the llvm-commits
mailing list