1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 11:42:57 +01:00
llvm-mirror/test/Analysis/CostModel/SystemZ
Jonas Paulsson c59c742c81 [CodeMetrics] Don't let extends of i1 be free.
getUserCost() currently returns TCC_Free for any extend of a compare (i1)
result. It seems this is only true in a limited number of cases where for
example two compares are chained. Even in those types of cases it seems
unlikely that they are generally free, while they may be in some cases.

This patch therefore removes this special handling of cast of i1. No tests
are failing because of this.

If some target want the old behavior, it could override getUserCost().

Review: Hal Finkel, Chandler Carruth, Evgeny Astigeevich, Simon Pilgrim,
        Ulrich Weigand
https://reviews.llvm.org/D54742/new/

llvm-svn: 360970
2019-05-17 01:26:35 +00:00
..
cmp-ext-01.ll
cmp-ext-02.ll
cmp-mem.ll [SystemZ::TTI] Improved cost values for comparison against memory. 2018-11-28 08:08:05 +00:00
cmp-tofp-scalar.ll [SystemZ::TTI] Recognize the higher cost of scalar i1 -> fp conversion 2018-11-01 09:05:32 +00:00
cmp-tofp.ll [SystemZ::TTI] Accurate costs for i1->double vector conversions 2018-11-01 09:01:51 +00:00
cmpsel.ll
divrem-const.ll [SystemZ] Improve handling and cost estimates of vector integer div/rem 2018-10-25 21:47:22 +00:00
divrem-pow2.ll [SystemZ] Improve handling and cost estimates of vector integer div/rem 2018-10-25 21:47:22 +00:00
divrem-reg.ll [SystemZ::TTI] i8/i16 operands extension costs revisited 2018-11-30 07:09:34 +00:00
ext-load.ll
ext-of-icmp-cost.ll [CodeMetrics] Don't let extends of i1 be free. 2019-05-17 01:26:35 +00:00
fp-arith.ll
fp-cast.ll [SystemZ::TTI] Improve accuracy of costs for vector fp <-> int conversions 2018-11-12 15:32:27 +00:00
int-arith.ll [SystemZ] Improve handling and cost estimates of vector integer div/rem 2018-10-25 21:47:22 +00:00
int-cast.ll
int-operands-extcost.ll [SystemZ::TTI] i8/i16 operands extension costs revisited 2018-11-30 07:09:34 +00:00
intrinsic-cost-crash.ll
intrinsics.ll [SystemZ::TTI] Return zero cost for scalar load/store connected with a bswap. 2018-11-28 07:52:34 +00:00
lit.local.cfg
load_store.ll
load-and-test.ll [SystemZ::TTI] Return zero cost for ICmp that becomes Load And Test. 2018-12-03 14:30:18 +00:00
load-ptr-cmp-fold.ll
logical.ll [SystemZ::TTI] i8/i16 operands extension costs revisited 2018-11-30 07:09:34 +00:00
memop-folding-int-arith.ll [SystemZ::TTI] i8/i16 operands extension costs revisited 2018-11-30 07:09:34 +00:00
numvectorregs.ll
scalar-cmp-cmp-log-sel.ll
shuffle.ll
vectorinstrs.ll