OSDN Git Service

[SystemZ::TTI] Improve cost for compare of i64 with extended i32 load
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 28 Nov 2018 08:58:27 +0000 (08:58 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 28 Nov 2018 08:58:27 +0000 (08:58 +0000)
commit3d8563b0d65ffbeae30fd0da3709ecfd662d5efd
tree8520abfd453b84bd63b8b25329eec96a3c693b16
parent21e857c82f4b8ebbc5a0f1448c407d815709c984
[SystemZ::TTI]  Improve cost for compare of i64 with extended i32 load

CGF/CLGF compares an i64 register with a sign/zero extended loaded i32 value
in memory.

This patch makes such a load considered foldable and so gets a 0 cost.

Review: Ulrich Weigand
https://reviews.llvm.org/D54944

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347735 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/SystemZ/SystemZTargetTransformInfo.cpp
test/Analysis/CostModel/SystemZ/memop-folding-int-arith.ll