diff options
| author | Zvi Rackover <zvi.rackover@intel.com> | 2017-04-30 06:06:26 +0000 |
|---|---|---|
| committer | Zvi Rackover <zvi.rackover@intel.com> | 2017-04-30 06:06:26 +0000 |
| commit | 4086e13e0ddbd8dc29b1a6f1d8b5af2c5beec429 (patch) | |
| tree | 00751407403993155bf1521fa3f1517b86267af3 /llvm/test/Transforms/InstSimplify/shufflevector.ll | |
| parent | 3979f438133adf97f9e6f2b14dd6e21bdd11b0e4 (diff) | |
| download | bcm5719-llvm-4086e13e0ddbd8dc29b1a6f1d8b5af2c5beec429.tar.gz bcm5719-llvm-4086e13e0ddbd8dc29b1a6f1d8b5af2c5beec429.zip | |
InstructionSimplify: Simplify a shuffle with a undef mask to undef
Summary:
Following the discussion in pr32486, adding the simplification:
shuffle %x, %y, undef -> undef
Reviewers: spatel, RKSimon, andreadb, davide
Reviewed By: spatel
Subscribers: jroelofs, davide, llvm-commits
Differential Revision: https://reviews.llvm.org/D32293
llvm-svn: 301764
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/shufflevector.ll')
| -rw-r--r-- | llvm/test/Transforms/InstSimplify/shufflevector.ll | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/llvm/test/Transforms/InstSimplify/shufflevector.ll b/llvm/test/Transforms/InstSimplify/shufflevector.ll index e03916c5b90..6af0db8e5a4 100644 --- a/llvm/test/Transforms/InstSimplify/shufflevector.ll +++ b/llvm/test/Transforms/InstSimplify/shufflevector.ll @@ -118,6 +118,14 @@ define <4 x i32> @undef_mask(<4 x i32> %x) { ret <4 x i32> %shuf } +define <4 x i32> @undef_mask_1(<4 x i32> %x, <4 x i32> %y) { +; CHECK-LABEL: @undef_mask_1( +; CHECK-NEXT: ret <4 x i32> undef +; + %shuf = shufflevector <4 x i32> %x, <4 x i32> %y, <4 x i32> undef + ret <4 x i32> %shuf +} + define <4 x i32> @identity_mask_0(<4 x i32> %x) { ; CHECK-LABEL: @identity_mask_0( ; CHECK-NEXT: ret <4 x i32> [[X:%.*]] |

