about summary refs log tree commit diff
path: root/src/comp/lib/llvm.rs
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <respindola@mozilla.com>2011-04-12 15:33:39 -0400
committerRafael Ávila de Espíndola <respindola@mozilla.com>2011-04-12 15:33:39 -0400
commitdd6fc607a46848b0960fc8095506cb8ffe3dd53d (patch)
tree3d7045d862a3c585152fcadf907f12037a8ba1d2 /src/comp/lib/llvm.rs
parent73eecbd0cad2e4d16a6a2d0aa197e3bb60f93b1f (diff)
downloadrust-dd6fc607a46848b0960fc8095506cb8ffe3dd53d.tar.gz
rust-dd6fc607a46848b0960fc8095506cb8ffe3dd53d.zip
Enable more optimizations.
Diffstat (limited to 'src/comp/lib/llvm.rs')
-rw-r--r--src/comp/lib/llvm.rs7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/comp/lib/llvm.rs b/src/comp/lib/llvm.rs
index 047059240b3..430e8cdb3b8 100644
--- a/src/comp/lib/llvm.rs
+++ b/src/comp/lib/llvm.rs
@@ -749,7 +749,7 @@ native mod llvm = llvm_lib {
     fn LLVMAddFunctionInliningPass(PassManagerRef PM);
     fn LLVMAddFunctionAttrsPass(PassManagerRef PM);
     fn LLVMAddScalarReplAggregatesPass(PassManagerRef PM);
-    // fn LLVMAddScalarReplAggregatesPassSSA(PassManagerRef PM);
+    fn LLVMAddScalarReplAggregatesPassSSA(PassManagerRef PM);
     fn LLVMAddJumpThreadingPass(PassManagerRef PM);
     fn LLVMAddConstantPropagationPass(PassManagerRef PM);
     fn LLVMAddReassociatePass(PassManagerRef PM);
@@ -770,10 +770,11 @@ native mod llvm = llvm_lib {
     fn LLVMAddIndVarSimplifyPass(PassManagerRef PM);
     fn LLVMAddAggressiveDCEPass(PassManagerRef PM);
     fn LLVMAddGlobalDCEPass(PassManagerRef PM);
-    // fn LLVMAddCorrelatedValuePropagationPass(PassManagerRef PM);
+    fn LLVMAddCorrelatedValuePropagationPass(PassManagerRef PM);
     fn LLVMAddPruneEHPass(PassManagerRef PM);
     fn LLVMAddSimplifyLibCallsPass(PassManagerRef PM);
-    // fn LLVMAddLoopIdiomPass(PassManagerRef PM);
+    fn LLVMAddLoopIdiomPass(PassManagerRef PM);
+    fn LLVMAddEarlyCSEPass(PassManagerRef PM);
 
     /** Destroys a memory buffer. */
     fn LLVMDisposeMemoryBuffer(MemoryBufferRef MemBuf);