[ARM] icmp %x, -C can be lowered to a simple ADDS or CMN
authorJames Molloy <james.molloy@arm.com>
Fri, 9 Sep 2016 13:35:28 +0000 (13:35 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 9 Sep 2016 13:35:28 +0000 (13:35 +0000)
commit1454e90f86101a08445287635bf5c9b74497e1f7
treea2f9d99cbf8c0e09c060192b62b007e64150e16d
parent153b40843310a00175105908005e3197b837fbc2
[ARM] icmp %x, -C can be lowered to a simple ADDS or CMN

Tell TargetTransformInfo about this so ConstantHoisting is informed.

llvm-svn: 281043
llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/CodeGen/ARM/immcost.ll