[SystemZ] Provide basic TargetTransformInfo implementation
authorUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 31 Mar 2015 12:52:27 +0000 (12:52 +0000)
committerUlrich Weigand <ulrich.weigand@de.ibm.com>
Tue, 31 Mar 2015 12:52:27 +0000 (12:52 +0000)
commit64aa9d8b4cfacd8badb7d121f92af04e9ccbbd45
tree5057c99f3b0c7c803bae708bd5fd91d085b3c5d9
parent378981499a3b1ba211e08f3d7db7c2d84460079d
[SystemZ] Provide basic TargetTransformInfo implementation

This hooks up the TargetTransformInfo machinery for SystemZ,
and provides an implementation of getIntImmCost.

In addition, the patch adds the isLegalICmpImmediate and
isLegalAddImmediate TargetLowering overrides, and updates
a couple of test cases where we now generate slightly
better code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233688 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/CMakeLists.txt
lib/Target/SystemZ/SystemZISelLowering.cpp
lib/Target/SystemZ/SystemZISelLowering.h
lib/Target/SystemZ/SystemZTargetMachine.cpp
lib/Target/SystemZ/SystemZTargetMachine.h
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp [new file with mode: 0644]
lib/Target/SystemZ/SystemZTargetTransformInfo.h [new file with mode: 0644]
test/CodeGen/SystemZ/int-cmp-12.ll
test/CodeGen/SystemZ/int-cmp-47.ll