diff options
author | Changpeng Fang <changpeng.fang@gmail.com> | 2019-01-15 23:12:36 +0000 |
---|---|---|
committer | Changpeng Fang <changpeng.fang@gmail.com> | 2019-01-15 23:12:36 +0000 |
commit | 20fe3d2f35ac8474952340f7f4c32a754e8d5102 (patch) | |
tree | 5a336c2223296df3270cbbed5c442afff4899d6c /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | a4fd381dc26e0002ad82132f7a45841c182d75f8 (diff) | |
download | llvm-20fe3d2f35ac8474952340f7f4c32a754e8d5102.zip llvm-20fe3d2f35ac8474952340f7f4c32a754e8d5102.tar.gz llvm-20fe3d2f35ac8474952340f7f4c32a754e8d5102.tar.bz2 |
AMDGPU: Raise the priority of MAD24 in instruction selection.
Summary:
We have seen performance regression when v_add3 is generated. The major reason is that the v_mad pattern
is broken when v_add3 is generated. We also see the register pressure increased. While we could not properly
estimate register pressure during instruction selection, we can give mad a higher priority.
In this work, we raise the priority for mad24 in selection and resolve the performance regression.
Reviewers:
rampitec
Differential Revision:
https://reviews.llvm.org/D56745
llvm-svn: 351273
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions