aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2009-10-22 06:47:35 +0000
committerEvan Cheng <evan.cheng@apple.com>2009-10-22 06:47:35 +0000
commitde6ba0a0863d45638958b1c0e47aab50c9fbaaa0 (patch)
treeac26095b72d8521d5045cb3a99f166fce0f384da /lib/Target/ARM/ARMLoadStoreOptimizer.cpp
parent7bdc6d5cc22c8e45cbd1c2afec51a7d4c2597a12 (diff)
downloadexternal_llvm-de6ba0a0863d45638958b1c0e47aab50c9fbaaa0.zip
external_llvm-de6ba0a0863d45638958b1c0e47aab50c9fbaaa0.tar.gz
external_llvm-de6ba0a0863d45638958b1c0e47aab50c9fbaaa0.tar.bz2
Load / store multiple was missing opportunites when the load / store bundles are at the end of the bb. Test case is already in, the bug is exposed by subsequent commit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84842 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM/ARMLoadStoreOptimizer.cpp')
-rw-r--r--lib/Target/ARM/ARMLoadStoreOptimizer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
index d2ec9ee..c9b9e84 100644
--- a/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
+++ b/lib/Target/ARM/ARMLoadStoreOptimizer.cpp
@@ -974,6 +974,9 @@ bool ARMLoadStoreOpt::LoadStoreMultipleOpti(MachineBasicBlock &MBB) {
if (Advance) {
++Position;
++MBBI;
+ if (MBBI == E)
+ // Reach the end of the block, try merging the memory instructions.
+ TryMerge = true;
} else
TryMerge = true;