aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineFunction.cpp
diff options
context:
space:
mode:
authorChangpeng Fang <changpeng.fang@gmail.com>2019-01-15 23:12:36 +0000
committerChangpeng Fang <changpeng.fang@gmail.com>2019-01-15 23:12:36 +0000
commit20fe3d2f35ac8474952340f7f4c32a754e8d5102 (patch)
tree5a336c2223296df3270cbbed5c442afff4899d6c /llvm/lib/CodeGen/MachineFunction.cpp
parenta4fd381dc26e0002ad82132f7a45841c182d75f8 (diff)
downloadllvm-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