[PATCH] D74253: SelectionDAG: Fix bug in ClusterNeighboringLoads

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 7 14:16:23 PST 2020


foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.

LGTM.



================
Comment at: llvm/lib/CodeGen/SelectionDAG/ScheduleDAGSDNodes.cpp:238
+    if (I.getUse().getResNo() != Chain.getResNo())
+      continue;
+
----------------
Is there no slicker way of iterating the uses of an SDValue, without having to manually check getResNo() each time?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D74253/new/

https://reviews.llvm.org/D74253





More information about the llvm-commits mailing list