Replace TargetLowering::isIntImmLegal() with
authorEvan Cheng <evan.cheng@apple.com>
Tue, 11 Dec 2012 23:26:14 +0000 (23:26 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Tue, 11 Dec 2012 23:26:14 +0000 (23:26 +0000)
commiteb54240dc271f169875e8a286c3893e2ef5bc250
tree995cf44e6607f7cbea4aa55d7b16230ca1da4e94
parenta2d35d153f3bfffcc2dfa10e4743d44cb9f00d1f
Replace TargetLowering::isIntImmLegal() with
ScalarTargetTransformInfo::getIntImmCost() instead. "Legal" is a poorly defined
term for something like integer immediate materialization. It is always possible
to materialize an integer immediate. Whether to use it for memcpy expansion is
more a "cost" conceern.

llvm-svn: 169929
llvm/include/llvm/Target/TargetLowering.h
llvm/include/llvm/TargetTransformInfo.h
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/lib/Target/ARM/ARMTargetMachine.h