[llvm] r278274 - AMDGPU: Remove unnecessary cast
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 10 12:11:46 PDT 2016
Author: arsenm
Date: Wed Aug 10 14:11:45 2016
New Revision: 278274
URL: http://llvm.org/viewvc/llvm-project?rev=278274&view=rev
Log:
AMDGPU: Remove unnecessary cast
Modified:
llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
Modified: llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp?rev=278274&r1=278273&r2=278274&view=diff
==============================================================================
--- llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/AMDGPU/SIInstrInfo.cpp Wed Aug 10 14:11:45 2016
@@ -904,12 +904,10 @@ bool SIInstrInfo::expandPostRAPseudo(Mac
}
case AMDGPU::SI_PC_ADD_REL_OFFSET: {
- const SIRegisterInfo *TRI
- = static_cast<const SIRegisterInfo *>(ST.getRegisterInfo());
MachineFunction &MF = *MBB.getParent();
unsigned Reg = MI.getOperand(0).getReg();
- unsigned RegLo = TRI->getSubReg(Reg, AMDGPU::sub0);
- unsigned RegHi = TRI->getSubReg(Reg, AMDGPU::sub1);
+ unsigned RegLo = RI.getSubReg(Reg, AMDGPU::sub0);
+ unsigned RegHi = RI.getSubReg(Reg, AMDGPU::sub1);
// Create a bundle so these instructions won't be re-ordered by the
// post-RA scheduler.
More information about the llvm-commits
mailing list