cl::opt<bool> DisableOutput("disable-x86-llc-output", cl::Hidden,
cl::desc("Disable the X86 asm printer, for use "
"when profiling the code generator."));
+ cl::opt<bool> DisablePatternISel("disable-pattern-isel", cl::Hidden,
+ cl::desc("Disable the pattern isel XXX FIXME"),
+ cl::init(true));
#if 0
// FIXME: This should eventually be handled with target triples and
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- PM.add(createX86SimpleInstructionSelector(*this));
+ if (DisablePatternISel)
+ PM.add(createX86SimpleInstructionSelector(*this));
+ else
+ PM.add(createX86PatternInstructionSelector(*this));
// Run optional SSA-based machine code optimizations next...
if (!NoSSAPeephole)
// Make sure that no unreachable blocks are instruction selected.
PM.add(createUnreachableBlockEliminationPass());
- PM.add(createX86SimpleInstructionSelector(TM));
+ if (DisablePatternISel)
+ PM.add(createX86SimpleInstructionSelector(TM));
+ else
+ PM.add(createX86PatternInstructionSelector(TM));
// Run optional SSA-based machine code optimizations next...
if (!NoSSAPeephole)