summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Andreas Benkard <matthias@benkard.de>2008-08-23 18:50:47 +0200
committerMatthias Andreas Benkard <matthias@benkard.de>2008-08-23 18:50:47 +0200
commit93a399f0efd42a7c958a576b2a91f8dce2535809 (patch)
tree7e4f818d8de38c722fb39b00be3742f343bd5c45
parentac9b572dc308315c0ecb1685cc2f439337594b11 (diff)
LLVM compiler: Add another optimisation pass.
-rw-r--r--MLKLLVMCompiler.mm1
1 files changed, 1 insertions, 0 deletions
diff --git a/MLKLLVMCompiler.mm b/MLKLLVMCompiler.mm
index f65654f..729db50 100644
--- a/MLKLLVMCompiler.mm
+++ b/MLKLLVMCompiler.mm
@@ -101,6 +101,7 @@ static Constant
fpm = new FunctionPassManager (module_provider);
fpm->add (new TargetData (*execution_engine->getTargetData()));
//fpm->add (new TargetData (module));
+ fpm->add (createScalarReplAggregatesPass());
fpm->add (createInstructionCombiningPass());
fpm->add (createReassociatePass());
fpm->add (createGVNPass());