[PATCH] D48043: [x86] eliminate more sign-bit tests with vector select
Sanjay Patel via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 11 11:58:52 PDT 2018
spatel created this revision.
spatel added reviewers: RKSimon, craig.topper.
Herald added a subscriber: mcrosier.
vselect (pcmpgt 0, X), Y, Z --> shrunkblend X, Y, Z
This shortcoming was noted in https://reviews.llvm.org/D47330, and the test diffs show we already had other examples where we failed to fold to a SHRUNKBLEND:
/// Dynamic (non-constant condition) vector blend where only the sign bits
/// of the condition elements are used. This is used to enforce that the
/// condition mask is not valid for generic VSELECT optimizations.
https://reviews.llvm.org/D48043
Files:
lib/Target/X86/X86ISelLowering.cpp
test/CodeGen/X86/vsel-cmp-load.ll
test/CodeGen/X86/vselect-pcmp.ll
test/CodeGen/X86/vselect.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48043.150802.patch
Type: text/x-patch
Size: 4717 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180611/22b2a39b/attachment.bin>
More information about the llvm-commits
mailing list