summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ValueTracking.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-10-19 08:23:08 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-10-19 08:23:08 +0000
commit59939acd2684708a1c617f9e42b2206956804bb6 (patch)
tree1861266aaa9d1539694c41dd23e83643222b98f7 /llvm/lib/Analysis/ValueTracking.cpp
parenta801dd5799bd6f6641ce3a7ea48f32d274ef95a0 (diff)
downloadbcm5719-llvm-59939acd2684708a1c617f9e42b2206956804bb6.tar.gz
bcm5719-llvm-59939acd2684708a1c617f9e42b2206956804bb6.zip
InstCombine: Optimize icmp eq/ne (shl Const2, A), Const1
The following implements the optimization for sequences of the form: icmp eq/ne (shl Const2, A), Const1 Such sequences can be transformed to: icmp eq/ne A, (TrailingZeros(Const1) - TrailingZeros(Const2)) This handles only the equality operators for now. Other operators need to be handled. Patch by Ankur Garg! llvm-svn: 220162
Diffstat (limited to 'llvm/lib/Analysis/ValueTracking.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud