From 93a399f0efd42a7c958a576b2a91f8dce2535809 Mon Sep 17 00:00:00 2001 From: Matthias Andreas Benkard Date: Sat, 23 Aug 2008 18:50:47 +0200 Subject: LLVM compiler: Add another optimisation pass. --- MLKLLVMCompiler.mm | 1 + 1 file changed, 1 insertion(+) 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()); -- cgit v1.2.3