summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2015-03-26 17:12:06 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2015-03-26 17:12:06 +0000
commit7fa8c430f748cc4b4dea08caa1a225b10a08563e (patch)
tree7b7fe54f73b346a46003552d9d7e93c388ac426b /llvm/lib/CodeGen/SelectionDAG
parentc632cda8b2fc26a047eca25620c52d1f843332f7 (diff)
downloadbcm5719-llvm-7fa8c430f748cc4b4dea08caa1a225b10a08563e.tar.gz
bcm5719-llvm-7fa8c430f748cc4b4dea08caa1a225b10a08563e.zip
InstCombine: fold (A << C) == (B << C) --> ((A^B) & (~0U >> C)) == 0
Anding and comparing with zero can be done in a single instruction on most archs so this is a bit cheaper. llvm-svn: 233291
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud