diff options
| author | Zvi Rackover <zvi.rackover@intel.com> | 2017-05-07 18:16:37 +0000 |
|---|---|---|
| committer | Zvi Rackover <zvi.rackover@intel.com> | 2017-05-07 18:16:37 +0000 |
| commit | 973ff7c74c6eb1073376834ce27588caeebfb034 (patch) | |
| tree | 0e2372f7ab375fb5a9fe5e6254be02b624147cf5 /llvm/test/Transforms/InstSimplify/apint-or.ll | |
| parent | ff41150ddb5a722c6e614e31f89e8fa52e2f7595 (diff) | |
| download | bcm5719-llvm-973ff7c74c6eb1073376834ce27588caeebfb034.tar.gz bcm5719-llvm-973ff7c74c6eb1073376834ce27588caeebfb034.zip | |
InstructionSimplify: Relanding r301766
Summary:
Re-applying r301766 with a fix to a typo and a regression test.
The log message for r301766 was:
==================================================================================
InstructionSimplify: Canonicalize shuffle operands. NFC-ish.
Summary:
Apply canonicalization rules:
1. Input vectors with no elements selected from can be replaced with undef.
2. If only one input vector is constant it shall be the second one.
This allows constant-folding to cover more ad-hoc simplifications that
were in place and avoid duplication for RHS and LHS checks.
There are more rules we may want to add in the future when we see a
justification. e.g. mask elements that select undef elements can be
replaced with undef.
==================================================================================
Reviewers: spatel, RKSimon
Reviewed By: spatel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D32863
llvm-svn: 302373
Diffstat (limited to 'llvm/test/Transforms/InstSimplify/apint-or.ll')
0 files changed, 0 insertions, 0 deletions

