summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/Mips/init-array.ll
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-09-05 05:26:38 +0000
committerCraig Topper <craig.topper@intel.com>2017-09-05 05:26:38 +0000
commit43c80be2e59b8defc295a4320742dd3d0d12d662 (patch)
treec431228ca986d786586adbec7be766d0df33a00a /llvm/test/CodeGen/Mips/init-array.ll
parent28d6d962d56701fc152d178a93dbf391994344c1 (diff)
downloadbcm5719-llvm-43c80be2e59b8defc295a4320742dd3d0d12d662.tar.gz
bcm5719-llvm-43c80be2e59b8defc295a4320742dd3d0d12d662.zip
[InstCombine] Add test cases for folding (select (icmp ne/eq (and X, C1), (bitwiseop Y, C2), Y -> (bitwiseop Y, (shl/shr (and X, C1), C3)) or similar.
This is possible if C1 and C2 are both powers of 2. Or if binop is 'and' then ~C2 needs to be a power of 2. We already support this for 'or', but we should be able to support 'and' and 'xor'. This will be enhanced by D37274. llvm-svn: 312519
Diffstat (limited to 'llvm/test/CodeGen/Mips/init-array.ll')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud