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)
commite07f85eb76a0254d3adbdf8b5d61ff5c07858cef
tree373200035521581fe63234d1b69ec1245637a85c
parent76a130b3617a6bd411359092dfd8d287f15c36e6
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169929 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
include/llvm/TargetTransformInfo.h
lib/CodeGen/SelectionDAG/SelectionDAG.cpp
lib/Target/ARM/ARMISelLowering.cpp
lib/Target/ARM/ARMISelLowering.h
lib/Target/ARM/ARMTargetMachine.h