llvm-project/llvm/test/Analysis/CostModel/PowerPC
Andrew Litteken 4ff4e7ea30 [CostModel] Use cost of target trunc type when only it is the only use of a non-register sized load
The code size cost model for most targets uses the legalization cost for the type of the pointer of a load. If this load is followed directly by a trunc instruction, and is the only use of the result of the load, only one instruction is generated in the target assembly language. This adds a check for this case, and uses the target type of the trunc instruction if so.

This did not show any changes in CTMark code size benchmarks.

Reviewers: paquette, samparker, dmgreen

Differential Revision: https://reviews.llvm.org/D109388
2022-01-12 18:03:50 -06:00
..
cmp-expanded.ll
ext.ll
future-cost-model.ll
insert_extract-inseltpoison.ll
insert_extract.ll
lit.local.cfg
load-to-trunc.ll [CostModel] Use cost of target trunc type when only it is the only use of a non-register sized load 2022-01-12 18:03:50 -06:00
load_store.ll
logicalop.ll [TTI] Consider select form of and/or i1 as having arithmetic cost 2021-03-02 02:18:19 +09:00
matrix.ll Recommit "[Matrix] Overload stride arg in matrix.columnwise.load/store." 2021-08-12 18:31:57 +01:00
popcnt.ll
reduce-and.ll [Cost]Canonicalize the cost for logical or/and reductions. 2021-03-19 11:01:58 -07:00
reduce-or.ll [Cost]Canonicalize the cost for logical or/and reductions. 2021-03-19 11:01:58 -07:00
unal-vec-ldst.ll
unaligned_ld_st.ll
vector_unit.ll
vsr_load_32_64.ll