Skip to content

Commit 7c7e11b

Browse files
[AMDGPU] Avoid repeated hash lookups (NFC) (llvm#128298)
1 parent 8f7e34b commit 7c7e11b

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Target/AMDGPU/SIWholeQuadMode.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1760,9 +1760,10 @@ bool SIWholeQuadMode::run(MachineFunction &MF) {
17601760
for (MachineInstr *MI : SetInactiveInstrs) {
17611761
if (LowerToCopyInstrs.contains(MI))
17621762
continue;
1763-
if (Instructions[MI].MarkedStates & StateStrict) {
1764-
Instructions[MI].Needs |= StateStrictWWM;
1765-
Instructions[MI].Disabled &= ~StateStrictWWM;
1763+
auto &Info = Instructions[MI];
1764+
if (Info.MarkedStates & StateStrict) {
1765+
Info.Needs |= StateStrictWWM;
1766+
Info.Disabled &= ~StateStrictWWM;
17661767
Blocks[MI->getParent()].Needs |= StateStrictWWM;
17671768
} else {
17681769
LLVM_DEBUG(dbgs() << "Has no WWM marking: " << *MI);

0 commit comments

Comments
 (0)