commit | 9e7e63adc75a6f99070d461814f9b2112f3d289f | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Sat Jul 15 15:55:07 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Sat Jul 15 15:55:07 2017 +0000 |
tree | bfd6e865104f5559490d5230d1f0319675bbc94f | |
parent | 49ca68c80a0d56d74edbb881d2a1ee336418fd0e [diff] |
[InstCombine] add tests for (1 << x) & 1 --> zext(x == 0) ; NFC This fold hit the trifecta: 1. It was untested. 2. It oversteps (multiuse is not checked, so increases instruction count). 3. It is incomplete (doesn't work for vectors). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308102 91177308-0d34-0410-b5e6-96231b3b80d8