[llvm] r269014 - llc: Print+Verify machine function after loading it
Matthias Braun via llvm-commits
llvm-commits at lists.llvm.org
Mon May 9 21:51:07 PDT 2016
Author: matze
Date: Mon May 9 23:51:07 2016
New Revision: 269014
URL: http://llvm.org/viewvc/llvm-project?rev=269014&view=rev
Log:
llc: Print+Verify machine function after loading it
In -run-pass mode verify/print machine function immediately after
loading the .mir file if -verify-machineinstr/-print-machineinstrs
option is specified.
Modified:
llvm/trunk/tools/llc/llc.cpp
Modified: llvm/trunk/tools/llc/llc.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llc/llc.cpp?rev=269014&r1=269013&r2=269014&view=diff
==============================================================================
--- llvm/trunk/tools/llc/llc.cpp (original)
+++ llvm/trunk/tools/llc/llc.cpp Mon May 9 23:51:07 2016
@@ -378,6 +378,7 @@ static int compileModule(char **argv, LL
PM.add(TPC);
LLVMTM.addMachineModuleInfo(PM);
LLVMTM.addMachineFunctionAnalysis(PM, MIR.get());
+ TPC->printAndVerify("");
Pass *P;
if (PI->getTargetMachineCtor())
More information about the llvm-commits
mailing list