Skip to content

Commit 6cb2f6d

Browse files
[AMDGPU] Avoid repeated hash lookups (NFC) (#130235)
1 parent fc1450c commit 6cb2f6d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPUInsertDelayAlu.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ class AMDGPUInsertDelayAlu {
400400
if (Emit) {
401401
assert(State == BlockState[&MBB] &&
402402
"Basic block state should not have changed on final pass!");
403-
} else if (State != BlockState[&MBB]) {
404-
BlockState[&MBB] = std::move(State);
403+
} else if (DelayState &BS = BlockState[&MBB]; State != BS) {
404+
BS = std::move(State);
405405
Changed = true;
406406
}
407407
return Changed;

0 commit comments

Comments
 (0)