[ARM] ADD with a negative offset can become SUB for free
authorJames Molloy <james.molloy@arm.com>
Fri, 9 Sep 2016 13:35:36 +0000 (13:35 +0000)
committerJames Molloy <james.molloy@arm.com>
Fri, 9 Sep 2016 13:35:36 +0000 (13:35 +0000)
commit57d9dfa9ac7618aea8de6d1d1d940db6c7474737
tree3ffd9c0c5df379168889f6cac3240cc838bc82fe
parent1454e90f86101a08445287635bf5c9b74497e1f7
[ARM] ADD with a negative offset can become SUB for free

So model that directly in TTI::getIntImmCost().

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