mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-14 00:32:55 +00:00
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
This commit is contained in:
parent
e00c43fc35
commit
faf93aa233
@ -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;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user