commit | c09fbb030f3ec176556cc6db4f7b2e08fe58fd30 | [log] [tgz] |
---|---|---|
author | Sanjay Patel <spatel@rotateright.com> | Sat Jul 15 17:26:01 2017 +0000 |
committer | Sanjay Patel <spatel@rotateright.com> | Sat Jul 15 17:26:01 2017 +0000 |
tree | 690169f5e945a36dcb0da704ec11b24820b3e6eb | |
parent | 59f9abe0f8b692031d22f8e05f7e194288d545bc [diff] |
[InstCombine] improve (1 << x) & 1 --> zext(x == 0) folding 1. Add a one-use check to prevent increasing instruction count. 2. Generalize the pattern matching to include vector types. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308105 91177308-0d34-0410-b5e6-96231b3b80d8