[llvm] [SelectionDAG] Use SDNode::op_iterator instead of SDNodeIterator. NFC (PR #122147)

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 8 13:25:07 PST 2025


================
@@ -2986,8 +2986,7 @@ bool TargetLowering::SimplifyDemandedBits(
       DemandedBits.isSubsetOf(Known.Zero | Known.One)) {
     // Avoid folding to a constant if any OpaqueConstant is involved.
     const SDNode *N = Op.getNode();
-    for (SDNode *Op :
-         llvm::make_range(SDNodeIterator::begin(N), SDNodeIterator::end(N))) {
+    for (SDValue Op : N->ops()) {
----------------
RKSimon wrote:

Op->ops();

https://github.com/llvm/llvm-project/pull/122147


More information about the llvm-commits mailing list