diff options
author | Evan Cheng <evan.cheng@apple.com> | 2009-07-10 01:54:42 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2009-07-10 01:54:42 +0000 |
commit | 06e16587ebc81e43b42157fa3afcfd806b59b296 (patch) | |
tree | 76e4f27ee3b197064487715c71ed7fbb7275d58f /lib/Target/ARM/ARMTargetMachine.cpp | |
parent | ab331504452a833f27a030f13525b964545d768a (diff) |
Add a thumb2 pass to insert IT blocks.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMTargetMachine.cpp')
-rw-r--r-- | lib/Target/ARM/ARMTargetMachine.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMTargetMachine.cpp b/lib/Target/ARM/ARMTargetMachine.cpp index b3faadafc5..a827784383 100644 --- a/lib/Target/ARM/ARMTargetMachine.cpp +++ b/lib/Target/ARM/ARMTargetMachine.cpp @@ -173,6 +173,9 @@ bool ARMBaseTargetMachine::addPreEmitPass(PassManagerBase &PM, !DisableIfConversion && !Subtarget.isThumb()) PM.add(createIfConverterPass()); + if (Subtarget.isThumb2()) + PM.add(createThumb2ITBlockPass()); + PM.add(createARMConstantIslandPass()); return true; } |