Fix a performance regression when combining to smaller types in icmp (shl %v, C1...
authorArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Wed, 13 Mar 2013 14:40:37 +0000 (14:40 +0000)
committerArnaud A. de Grandmaison <arnaud.adegm@gmail.com>
Wed, 13 Mar 2013 14:40:37 +0000 (14:40 +0000)
commitbdd2d981391bd9329aba669cffcdde0c39373cb1
tree4a5bacfb18f1a64079a083de39088c98232b6986
parentdec29b61a49da09e8ed494dcc1466f160614f80d
Fix a performance regression when combining to smaller types in icmp (shl %v, C1), C2 :

Only combine when the shl is only used by the icmp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176950 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp