[llvm] [AMDGPU] Avoid repeated hash lookups (NFC) (PR #109506)
Shilei Tian via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 20 20:51:05 PDT 2024
================
@@ -296,9 +296,8 @@ bool LiveRegOptimizer::optimizeLiveType(
// Collect all uses of PHINodes and any use the crosses BB boundaries.
if (UseInst->getParent() != II->getParent() || isa<PHINode>(II)) {
Uses.insert(UseInst);
- if (!Defs.count(II) && !isa<PHINode>(II)) {
----------------
shiltian wrote:
Why is this redundant?
https://github.com/llvm/llvm-project/pull/109506
More information about the llvm-commits
mailing list