summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-06-20 12:40:55 +0000
committerSanjay Patel <spatel@rotateright.com>2017-06-20 12:40:55 +0000
commitadca825dc14fcdda6425bebcb2f342ea45231ac5 (patch)
tree575c2bb7d1b24d439d49b10b19704221dbbbf4fc /clang/lib/CodeGen/CodeGenModule.cpp
parenta6e2cebf98c5538c4796fedb7354c87cb0dd2c7d (diff)
downloadbcm5719-llvm-adca825dc14fcdda6425bebcb2f342ea45231ac5.tar.gz
bcm5719-llvm-adca825dc14fcdda6425bebcb2f342ea45231ac5.zip
[InstCombine] try to canonicalize xor-of-icmps to and-of-icmps
We have a large portfolio of folds for and-of-icmps and or-of-icmps in InstSimplify and InstCombine, but hardly anything for xor-of-icmps. Rather than trying to rethink and translate all of those folds, we can use the truth table definition of xor: X ^ Y --> (X | Y) & !(X & Y) ...to see if we can convert the xor to and/or and then use the existing folds. http://rise4fun.com/Alive/J9v Differential Revision: https://reviews.llvm.org/D33342 llvm-svn: 305792
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud