diff options
author | Sanjay Patel <spatel@rotateright.com> | 2017-07-15 17:26:01 +0000 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2017-07-15 17:26:01 +0000 |
commit | 3437ee27407d9fe27155000930a324d1022b781d (patch) | |
tree | eebf814b61dc67fcbf9ede6a358e19e2dd43d58b /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e29b112f493cab1cbf5f9a6ed5e8d1ea26f98176 (diff) | |
download | bcm5719-llvm-3437ee27407d9fe27155000930a324d1022b781d.tar.gz bcm5719-llvm-3437ee27407d9fe27155000930a324d1022b781d.zip |
[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.
llvm-svn: 308105
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions