diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2016-07-16 15:20:19 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2016-07-16 15:20:19 +0000 |
| commit | f9d2b20daff1251bb53b02a7e12ba20324da106f (patch) | |
| tree | 2e3bf9a65eb7a23a7b8c31e09ab32738e9059cac /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
| parent | ee0e63804f2aeb0e129ebc6d9c897e91ca979a3f (diff) | |
| download | bcm5719-llvm-f9d2b20daff1251bb53b02a7e12ba20324da106f.tar.gz bcm5719-llvm-f9d2b20daff1251bb53b02a7e12ba20324da106f.zip | |
[InstCombine] reassociate logic ops with constants separated by a zext
This is a partial implementation of a general fold for associative+commutative operators:
(op (cast (op X, C2)), C1) --> (cast (op X, op (C1, C2)))
(op (cast (op X, C2)), C1) --> (op (cast X), op (C1, C2))
There are 7 associative operators and 13 cast types, so this could potentially go a lot further.
Differential Revision: https://reviews.llvm.org/D22421
llvm-svn: 275684
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions

