Make the JIT default to the DAG isel instead of the pattern isel, like LLC.
authorChris Lattner <sabre@nondot.org>
Thu, 29 Sep 2005 17:31:03 +0000 (17:31 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 29 Sep 2005 17:31:03 +0000 (17:31 +0000)
The Pattern isel has some strange memory corruption issues going on. :(

This should have been converted over anyway, but it got forgotten somehow
when switching to the dag isel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23523 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCTargetMachine.cpp

index 487f1443071474bd9787fef586514991dfc6ffa6..1be28ec634235cf4b82ee4d90d4a53ccafde99b1 100644 (file)
@@ -145,7 +145,10 @@ void PowerPCJITInfo::addPassesToJITCompile(FunctionPassManager &PM) {
   PM.add(createUnreachableBlockEliminationPass());
 
   // Install an instruction selector.
-  PM.add(createPPC32ISelPattern(TM));
+  if (!DisablePPCDAGDAG)
+    PM.add(createPPC32ISelDag(TM));
+  else
+    PM.add(createPPC32ISelPattern(TM));
 
   PM.add(createRegisterAllocator());
   PM.add(createPrologEpilogCodeInserter());