Skip to content

Commit 3698453

Browse files
committed
[AMDGPU] SIWholeQuadMode: remove unnecessary map access (NFCI)
1 parent c09ed6a commit 3698453

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -550,8 +550,7 @@ char SIWholeQuadMode::scanInstructions(MachineFunction &MF,
550550
Opcode == AMDGPU::DS_DIRECT_LOAD) {
551551
// Mark these STRICTWQM, but only for the instruction, not its operands.
552552
// This avoid unnecessarily marking M0 as requiring WQM.
553-
InstrInfo &II = Instructions[&MI];
554-
II.Needs |= StateStrictWQM;
553+
III.Needs |= StateStrictWQM;
555554
GlobalFlags |= StateStrictWQM;
556555
} else if (Opcode == AMDGPU::V_SET_INACTIVE_B32 ||
557556
Opcode == AMDGPU::V_SET_INACTIVE_B64) {

0 commit comments

Comments
 (0)