JIT should print LLVM each function before selecting instructions for it.
llvm-svn: 18803
This commit is contained in:
parent
5625dec232
commit
72daaa46eb
|
@ -137,6 +137,10 @@ void SparcV8JITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
|
|||
// FIXME: implement the select instruction in the instruction selector.
|
||||
PM.add(createLowerSelectPass());
|
||||
|
||||
// Print LLVM code input to instruction selector:
|
||||
if (PrintMachineCode)
|
||||
PM.add(new PrintFunctionPass());
|
||||
|
||||
PM.add(createSparcV8SimpleInstructionSelector(TM));
|
||||
|
||||
// Print machine instructions as they were initially generated.
|
||||
|
|
Loading…
Reference in New Issue