mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 02:24:22 +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:
@ -974,6 +974,9 @@ bool ARMLoadStoreOpt::LoadStoreMultipleOpti(MachineBasicBlock &MBB) {
|
|||||||
if (Advance) {
|
if (Advance) {
|
||||||
++Position;
|
++Position;
|
||||||
++MBBI;
|
++MBBI;
|
||||||
|
if (MBBI == E)
|
||||||
|
// Reach the end of the block, try merging the memory instructions.
|
||||||
|
TryMerge = true;
|
||||||
} else
|
} else
|
||||||
TryMerge = true;
|
TryMerge = true;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user