Skip to content

Commit d7db094

Browse files
[AMDGPU] Avoid repeated hash lookups (NFC) (#109506)
1 parent 18225c7 commit d7db094

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/AMDGPU/AMDGPULateCodeGenPrepare.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,8 @@ bool LiveRegOptimizer::optimizeLiveType(
296296
// Collect all uses of PHINodes and any use the crosses BB boundaries.
297297
if (UseInst->getParent() != II->getParent() || isa<PHINode>(II)) {
298298
Uses.insert(UseInst);
299-
if (!Defs.count(II) && !isa<PHINode>(II)) {
299+
if (!isa<PHINode>(II))
300300
Defs.insert(II);
301-
}
302301
}
303302
}
304303
}

0 commit comments

Comments
 (0)