summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2011-06-15 23:37:01 +0000
committerJohn McCall <rjmccall@apple.com>2011-06-15 23:37:01 +0000
commitd935e9c359117828ec66ead9f5fe239e943ac3ee (patch)
tree4ea44a80d2fcdf5bfc1b577885ccdf6a0dd91e10 /llvm/lib/CodeGen
parentc8c184d2f80c2b3000a0d2cbf2462be0a58b0468 (diff)
downloadbcm5719-llvm-d935e9c359117828ec66ead9f5fe239e943ac3ee.tar.gz
bcm5719-llvm-d935e9c359117828ec66ead9f5fe239e943ac3ee.zip
The ARC language-specific optimizer. Credit to Dan Gohman.
llvm-svn: 133108
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LLVMTargetMachine.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
index 589d0a9a671..b98fbed695b 100644
--- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp
+++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp
@@ -303,6 +303,10 @@ bool LLVMTargetMachine::addCommonCodeGenPasses(PassManagerBase &PM,
if (!DisableVerify)
PM.add(createVerifierPass());
+ // Simplify ObjC ARC code. This is done late because it makes re-optimization
+ // difficult.
+ PM.add(createObjCARCContractPass());
+
// Run loop strength reduction before anything else.
if (OptLevel != CodeGenOpt::None && !DisableLSR) {
PM.add(createLoopStrengthReducePass(getTargetLowering()));
OpenPOWER on IntegriCloud