[PATCH] D22027: BranchFolding: Use LivePhysReg to update live in lists.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 6 08:04:25 PDT 2016


mcrosier added a comment.

Minor nip.


================
Comment at: lib/CodeGen/BranchFolding.cpp:416
@@ +415,3 @@
+  }
+  for (unsigned I = 1, E = TRI->getNumRegs(); I != E; I++) {
+    if (!LiveRegs.contains(I))
----------------
Pre-increment of I is preferred.


Repository:
  rL LLVM

http://reviews.llvm.org/D22027





More information about the llvm-commits mailing list