If we have a select whose operands are two shufflevectors and we know the
non-selected elements are undef, replace the instruction with a
shufflevector from the source vectors of the shufflevectors.
Added test cases.
Paths
| Differential D3561
Fold selects when the non-selected elements are undef from shufflevectors AbandonedPublic Authored by filcab on Apr 29 2014, 11:27 PM.
Details
Summary If we have a select whose operands are two shufflevectors and we know the Added test cases.
Diff Detail Event Timeline
Comment Actions More fixes pointed by Benjamin Kramer. This revision is now accepted and ready to land.May 3 2014, 3:14 AM Comment Actions Per discussion on the mailing list (e. g: http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20140505/216033.html and following messages), I'm abandoning this revision.
Revision Contents
Diff 9044 a.c
add-packed.ll
insertps.after.s
insertps.before.s
insertps.ll
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/select.ll
|
Argument "SI" is now unused :)