[Thumb1] AND with a constant operand can be converted into BIC
authorJames Molloy <james.molloy@arm.com>
Thu, 8 Sep 2016 12:58:12 +0000 (12:58 +0000)
committerJames Molloy <james.molloy@arm.com>
Thu, 8 Sep 2016 12:58:12 +0000 (12:58 +0000)
commit753c18f5c00bf64de66b584a252933961bc99df5
treed00b91a8e6afce9431f4f60e3daed66f2f59847f
parent7c7255e40b9115802987690516fb10301e22a313
[Thumb1] AND with a constant operand can be converted into BIC

So model the cost of materializing the constant operand C as the minimum of
C and ~C.

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