aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-10-16 14:35:21 +0000
committerSanjay Patel <spatel@rotateright.com>2018-10-16 14:35:21 +0000
commit0c48c977b84c91d4c1812bed7b2dc6b5fc376281 (patch)
tree3b61dfe07f196c704b5f9974187ff487152c309b /clang/lib/CodeGen/CodeGenFunction.cpp
parenteaab2b77e1a6c5709966e9609ed15496a90f2bc0 (diff)
downloadllvm-0c48c977b84c91d4c1812bed7b2dc6b5fc376281.zip
llvm-0c48c977b84c91d4c1812bed7b2dc6b5fc376281.tar.gz
llvm-0c48c977b84c91d4c1812bed7b2dc6b5fc376281.tar.bz2
[InstCombine] try harder to form select from logic ops
This is part of solving PR37549: https://bugs.llvm.org/show_bug.cgi?id=37549 The patterns shown here are a special case of something that we already convert to select. Using ComputeNumSignBits() catches that case (but not the more complicated motivating patterns yet). The backend has hooks/logic to convert back to logic ops if that's better for the target. llvm-svn: 344609
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions