[llvm] [SelectionDAG] Rename SDNode::uses() to users(). (PR #120499)
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Wed Dec 18 16:33:39 PST 2024
================
@@ -750,7 +750,7 @@ END_TWO_BYTE_PACK()
bool use_empty() const { return UseList == nullptr; }
/// Return true if there is exactly one use of this node.
- bool hasOneUse() const { return hasSingleElement(uses()); }
+ bool hasOneUse() const { return hasSingleElement(users()); }
----------------
topperc wrote:
>This method returns true if all users are the same node.
That's not true. hasSingleElement just checks that the range contains 1 element. We don't do anything to remove duplicate users from the range.
https://github.com/llvm/llvm-project/pull/120499
More information about the llvm-commits
mailing list