From 25320da099e375be22706b641eba35b7e35299e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20=C3=81vila=20de=20Esp=C3=ADndola?= Date: Thu, 7 Apr 2011 12:12:21 -0400 Subject: Run optimizations. It is always on for now just to make sure the bots are happy. If they are, I will add a -O option and update the makefile. --- src/comp/lib/llvm.rs | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) (limited to 'src/comp/lib/llvm.rs') diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs index 456e43fd..04705924 100644 --- a/src/comp/lib/llvm.rs +++ b/src/comp/lib/llvm.rs @@ -741,6 +741,40 @@ native mod llvm = llvm_lib { /** Adds a verification pass. */ fn LLVMAddVerifierPass(PassManagerRef PM); + fn LLVMAddGlobalOptimizerPass(PassManagerRef PM); + fn LLVMAddIPSCCPPass(PassManagerRef PM); + fn LLVMAddDeadArgEliminationPass(PassManagerRef PM); + fn LLVMAddInstructionCombiningPass(PassManagerRef PM); + fn LLVMAddCFGSimplificationPass(PassManagerRef PM); + fn LLVMAddFunctionInliningPass(PassManagerRef PM); + fn LLVMAddFunctionAttrsPass(PassManagerRef PM); + fn LLVMAddScalarReplAggregatesPass(PassManagerRef PM); + // fn LLVMAddScalarReplAggregatesPassSSA(PassManagerRef PM); + fn LLVMAddJumpThreadingPass(PassManagerRef PM); + fn LLVMAddConstantPropagationPass(PassManagerRef PM); + fn LLVMAddReassociatePass(PassManagerRef PM); + fn LLVMAddLoopRotatePass(PassManagerRef PM); + fn LLVMAddLICMPass(PassManagerRef PM); + fn LLVMAddLoopUnswitchPass(PassManagerRef PM); + fn LLVMAddLoopDeletionPass(PassManagerRef PM); + fn LLVMAddLoopUnrollPass(PassManagerRef PM); + fn LLVMAddGVNPass(PassManagerRef PM); + fn LLVMAddMemCpyOptPass(PassManagerRef PM); + fn LLVMAddSCCPPass(PassManagerRef PM); + fn LLVMAddDeadStoreEliminationPass(PassManagerRef PM); + fn LLVMAddStripDeadPrototypesPass(PassManagerRef PM); + fn LLVMAddDeadTypeEliminationPass(PassManagerRef PM); + fn LLVMAddConstantMergePass(PassManagerRef PM); + fn LLVMAddArgumentPromotionPass(PassManagerRef PM); + fn LLVMAddTailCallEliminationPass(PassManagerRef PM); + fn LLVMAddIndVarSimplifyPass(PassManagerRef PM); + fn LLVMAddAggressiveDCEPass(PassManagerRef PM); + fn LLVMAddGlobalDCEPass(PassManagerRef PM); + // fn LLVMAddCorrelatedValuePropagationPass(PassManagerRef PM); + fn LLVMAddPruneEHPass(PassManagerRef PM); + fn LLVMAddSimplifyLibCallsPass(PassManagerRef PM); + // fn LLVMAddLoopIdiomPass(PassManagerRef PM); + /** Destroys a memory buffer. */ fn LLVMDisposeMemoryBuffer(MemoryBufferRef MemBuf); -- cgit v1.2.3