[llvm] d176e13 - Fixed release build after D89170
Stanislav Mekhanoshin via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 26 16:01:07 PDT 2020
Author: Stanislav Mekhanoshin
Date: 2020-10-26T16:00:57-07:00
New Revision: d176e13ca55353c7ee8d4da23be6eae9f82a64e1
URL: https://github.com/llvm/llvm-project/commit/d176e13ca55353c7ee8d4da23be6eae9f82a64e1
DIFF: https://github.com/llvm/llvm-project/commit/d176e13ca55353c7ee8d4da23be6eae9f82a64e1.diff
LOG: Fixed release build after D89170
Added:
Modified:
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp b/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
index 8f4b1d42f32a..e62e31378455 100644
--- a/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
+++ b/llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
@@ -490,15 +490,16 @@ void SIRegisterInfo::resolveFrameIndex(MachineInstr &MI, Register BaseReg,
MachineOperand *FIOp =
TII->getNamedOperand(MI, IsFlat ? AMDGPU::OpName::saddr
: AMDGPU::OpName::vaddr);
+
+ MachineOperand *OffsetOp = TII->getNamedOperand(MI, AMDGPU::OpName::offset);
+ int64_t NewOffset = OffsetOp->getImm() + Offset;
+
#ifndef NDEBUG
MachineBasicBlock *MBB = MI.getParent();
MachineFunction *MF = MBB->getParent();
assert(FIOp && FIOp->isFI() && "frame index must be address operand");
assert(TII->isMUBUF(MI) || TII->isFLATScratch(MI));
- MachineOperand *OffsetOp = TII->getNamedOperand(MI, AMDGPU::OpName::offset);
- int64_t NewOffset = OffsetOp->getImm() + Offset;
-
if (IsFlat) {
assert(TII->isLegalFLATOffset(NewOffset, AMDGPUAS::PRIVATE_ADDRESS, true) &&
"offset should be legal");
More information about the llvm-commits
mailing list