summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-07-15 17:26:01 +0000
committerSanjay Patel <spatel@rotateright.com>2017-07-15 17:26:01 +0000
commit3437ee27407d9fe27155000930a324d1022b781d (patch)
treeeebf814b61dc67fcbf9ede6a358e19e2dd43d58b /clang/lib/Frontend/CompilerInvocation.cpp
parente29b112f493cab1cbf5f9a6ed5e8d1ea26f98176 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud