Skip to content

Commit

Permalink
[AMDGPU] SIWholeQuadMode: remove unnecessary map access (NFCI)
Browse files Browse the repository at this point in the history
  • Loading branch information
perlfu committed Jul 15, 2024
1 parent c09ed6a commit 3698453
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -550,8 +550,7 @@ char SIWholeQuadMode::scanInstructions(MachineFunction &MF,
Opcode == AMDGPU::DS_DIRECT_LOAD) {
// Mark these STRICTWQM, but only for the instruction, not its operands.
// This avoid unnecessarily marking M0 as requiring WQM.
InstrInfo &II = Instructions[&MI];
II.Needs |= StateStrictWQM;
III.Needs |= StateStrictWQM;
GlobalFlags |= StateStrictWQM;
} else if (Opcode == AMDGPU::V_SET_INACTIVE_B32 ||
Opcode == AMDGPU::V_SET_INACTIVE_B64) {
Expand Down

0 comments on commit 3698453

Please sign in to comment.