diff options
author | Jay Foad <jay.foad@amd.com> | 2021-03-10 13:53:07 +0000 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2021-03-10 16:18:12 +0000 |
commit | 70f013fd3b48087e793be7dc8fd79820556876e5 (patch) | |
tree | 0324935ed17aa4c61625cc0531aece75c3fd0c4b /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | e64f3ccca3c2d4cb122a8db3d22e0d885286ea16 (diff) | |
download | llvm-70f013fd3b48087e793be7dc8fd79820556876e5.zip llvm-70f013fd3b48087e793be7dc8fd79820556876e5.tar.gz llvm-70f013fd3b48087e793be7dc8fd79820556876e5.tar.bz2 |
[AMDGPU] Fix isReallyTriviallyReMaterializable for V_MOV_*
D57708 changed SIInstrInfo::isReallyTriviallyReMaterializable to reject
V_MOVs with extra implicit operands, but it accidentally rejected all
V_MOVs because of their implicit use of exec. Fix it but avoid adding a
moderately expensive call to MI.getDesc().getNumImplicitUses().
In real graphics shaders this changes quite a few vgpr copies into move-
immediates, which is good for avoiding stalls on GFX10.
Differential Revision: https://reviews.llvm.org/D98347
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions