summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-09-29 17:31:03 +0000
committerChris Lattner <sabre@nondot.org>2005-09-29 17:31:03 +0000
commiteca4f566466fb4114fafc2712ff0f2e980eaf976 (patch)
treef54bcc91bee4824265433e1b1a0df0d1144e3c08 /llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
parent5b2be1f89069b0a8f1c147dfb26e306981c81f74 (diff)
downloadbcm5719-llvm-eca4f566466fb4114fafc2712ff0f2e980eaf976.tar.gz
bcm5719-llvm-eca4f566466fb4114fafc2712ff0f2e980eaf976.zip
Make the JIT default to the DAG isel instead of the pattern isel, like LLC.
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. llvm-svn: 23523
Diffstat (limited to 'llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp')
-rw-r--r--llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
index 487f1443071..1be28ec6342 100644
--- a/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
+++ b/llvm/lib/Target/PowerPC/PowerPCTargetMachine.cpp
@@ -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());
OpenPOWER on IntegriCloud