[llvm] 8a59d4b - AMDGPU: Don't query for TII in TII
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 23 07:34:33 PDT 2020
Author: Matt Arsenault
Date: 2020-10-23T10:34:24-04:00
New Revision: 8a59d4b654e486d9f8f8dbc6da40a4d7ad93ee68
URL: https://github.com/llvm/llvm-project/commit/8a59d4b654e486d9f8f8dbc6da40a4d7ad93ee68
DIFF: https://github.com/llvm/llvm-project/commit/8a59d4b654e486d9f8f8dbc6da40a4d7ad93ee68.diff
LOG: AMDGPU: Don't query for TII in TII
Added:
Modified:
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
index 076b7c5d2a38..e62a0d985e62 100644
--- a/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
@@ -5106,9 +5106,8 @@ void SIInstrInfo::legalizeOperands(MachineInstr &MI,
// Move everything between ADJCALLSTACKUP and ADJCALLSTACKDOWN and
// following copies, we also need to move copies from and to physical
// registers into the loop block.
- const TargetInstrInfo &TII = *MF.getSubtarget().getInstrInfo();
- unsigned FrameSetupOpcode = TII.getCallFrameSetupOpcode();
- unsigned FrameDestroyOpcode = TII.getCallFrameDestroyOpcode();
+ unsigned FrameSetupOpcode = getCallFrameSetupOpcode();
+ unsigned FrameDestroyOpcode = getCallFrameDestroyOpcode();
// Also move the copies to physical registers into the loop block
MachineBasicBlock &MBB = *MI.getParent();
More information about the llvm-commits
mailing list