[PATCH] D31750: [globalisel] Enable tracing the legalizer with --debug-only=legalize-mir

Kristof Beyls via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 19 00:27:29 PDT 2017


kristof.beyls accepted this revision.
kristof.beyls added inline comments.
This revision is now accepted and ready to land.


================
Comment at: lib/CodeGen/GlobalISel/Legalizer.cpp:204
+          DEBUG(dbgs() << ".. .. Emitted " << NumNewInsns << " insns\n");
+          for (SmallVector<MachineInstr *, 4>::iterator
+                   I = WorkList.end() - NumNewInsns,
----------------
Minor nitpick: maybe use auto& here to make the code slightly more readable?
Otherwise, LGTM.


https://reviews.llvm.org/D31750





More information about the llvm-commits mailing list