summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2009-11-12 03:28:35 +0000
committerJim Grosbach <grosbach@apple.com>2009-11-12 03:28:35 +0000
commit6385ea7c4eef23fe999cf1ab460452c9a3380260 (patch)
treec9bbd9b6fcb4894811ad76a357ba5656f72be6b2 /llvm/lib
parent84c16cf824de9f670ec3fae8853d33ea287d0053 (diff)
downloadbcm5719-llvm-6385ea7c4eef23fe999cf1ab460452c9a3380260.tar.gz
bcm5719-llvm-6385ea7c4eef23fe999cf1ab460452c9a3380260.zip
Revert 86857. It's causing consumer-typeset to fail, and there's a better way to do it forthcoming anyway.
llvm-svn: 86945
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM/ARMConstantIslandPass.cpp11
1 files changed, 4 insertions, 7 deletions
diff --git a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
index 73cf414b5c1..9ea9c9c128a 100644
--- a/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
+++ b/llvm/lib/Target/ARM/ARMConstantIslandPass.cpp
@@ -294,11 +294,6 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &MF) {
// sizes of each block, the location of all the water, and finding all of the
// constant pool users.
InitialFunctionScan(MF, CPEMIs);
-
- bool MadeChange = false;
- if (isThumb2)
- MadeChange |= OptimizeThumb2JumpTables(MF);
-
CPEMIs.clear();
/// Remove dead constant pool entries.
@@ -306,6 +301,7 @@ bool ARMConstantIslands::runOnMachineFunction(MachineFunction &MF) {
// Iteratively place constant pool entries and fix up branches until there
// is no change.
+ bool MadeChange = false;
unsigned NoCPIters = 0, NoBRIters = 0;
while (true) {
bool CPChange = false;
@@ -1480,6 +1476,7 @@ bool ARMConstantIslands::OptimizeThumb2Instructions(MachineFunction &MF) {
}
MadeChange |= OptimizeThumb2Branches(MF);
+ MadeChange |= OptimizeThumb2JumpTables(MF);
return MadeChange;
}
@@ -1725,8 +1722,8 @@ AdjustJTTargetBlockForward(MachineBasicBlock *BB, MachineBasicBlock *JTBB)
JTBB->addSuccessor(NewBB);
// Update internal data structures to account for the newly inserted MBB.
- // Don't mark the new block as having water following it, as we want the
- // blocks following the jump table to be as close together as possible.
+ // This is almost the same as UpdateForInsertedWaterBlock, except that
+ // the Water goes after OrigBB, not NewBB.
MF.RenumberBlocks(NewBB);
// Insert a size into BBSizes to align it properly with the (newly
OpenPOWER on IntegriCloud