[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
Thu Apr 6 05:23:10 PDT 2017
kristof.beyls added inline comments.
================
Comment at: lib/CodeGen/GlobalISel/LegalizerHelper.cpp:74-77
+ MIRBuilder.recordInsertions([&](MachineInstr *MI) {
+ DEBUG(DebugReportList.push_back(MI));
+ WorkList.push_back(MI);
+ });
----------------
This patch looks pretty straightforward.
I'm just wondering why you don't just directly print out the New MI here and instead use a data structure to record it and print it out later?
https://reviews.llvm.org/D31750
More information about the llvm-commits
mailing list