================ @@ -518,17 +509,8 @@ class Value { /// This method should only be used by the Use class. void addUse(Use &U) { - if (hasUseList()) - U.addToList(Uses.List); - else - U.addToList(Uses.Count); - } - - void removeUse(Use &U) { - if (hasUseList()) - U.removeFromList(Uses.List); - else - U.removeFromList(Uses.Count); + if (UseList || hasUseList()) ---------------- arsenm wrote:
hasUseList is sufficient, not sure if this is really an optimization. I was going to remove this after to see if it makes a difference https://github.com/llvm/llvm-project/pull/137314 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits