summaryrefslogtreecommitdiff
path: root/lib/Target/ARM/ARMConstantIslandPass.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2010-08-09 18:35:19 +0000
committerEvan Cheng <evan.cheng@apple.com>2010-08-09 18:35:19 +0000
commite44be6381609d31b2d8879dbd5107e01404fa475 (patch)
tree04b4b4ac60da29997f44672123c56ed6048d296a /lib/Target/ARM/ARMConstantIslandPass.cpp
parentad4910429c58e11dcff07453c1e566a3aec14087 (diff)
downloadllvm-e44be6381609d31b2d8879dbd5107e01404fa475.tar.gz
llvm-e44be6381609d31b2d8879dbd5107e01404fa475.tar.bz2
llvm-e44be6381609d31b2d8879dbd5107e01404fa475.tar.xz
Change -prefer-32bit-thumb to attribute -mattr=+32bit instead to disable more 32-bit to 16-bit optimizations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110584 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMConstantIslandPass.cpp')
-rw-r--r--lib/Target/ARM/ARMConstantIslandPass.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/ARM/ARMConstantIslandPass.cpp b/lib/Target/ARM/ARMConstantIslandPass.cpp
index 118b2de7f4..224842d070 100644
--- a/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -357,7 +357,7 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &MF) {
}
// Shrink 32-bit Thumb2 branch, load, and store instructions.
- if (isThumb2)
+ if (isThumb2 && !STI->prefers32BitThumb())
MadeChange |= OptimizeThumb2Instructions(MF);
// After a while, this might be made debug-only, but it is not expensive.