commit | 21e857c82f4b8ebbc5a0f1448c407d815709c984 | [log] [tgz] |
---|---|---|
author | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | Wed Nov 28 08:31:50 2018 +0000 |
committer | Jonas Paulsson <paulsson@linux.vnet.ibm.com> | Wed Nov 28 08:31:50 2018 +0000 |
tree | 0f4ea5c7b08419c7b549054f50fa463c5e9bae9c | |
parent | 024fc6cdfea93f59dff6a35dd0ed38bd154613a7 [diff] |
[SystemZ::TTI] Improve costs for i16 add, sub and mul against memory. AH, SH and MH costs are already covered in the cases where LHS is 32 bits and RHS is 16 bits of memory sign-extended to i32. As these instructions are also used when LHS is i16, this patch recognizes that the loads will get folded then as well. Review: Ulrich Weigand https://reviews.llvm.org/D54940 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@347734 91177308-0d34-0410-b5e6-96231b3b80d8