mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
Fix RegScavenger::forward() to work on basic blocks containing exactly
one instruction. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61236 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -98,6 +98,7 @@ public:
|
|||||||
/// forward / backward - Move the internal MBB iterator and update register
|
/// forward / backward - Move the internal MBB iterator and update register
|
||||||
/// states until it has processed the specific iterator.
|
/// states until it has processed the specific iterator.
|
||||||
void forward(MachineBasicBlock::iterator I) {
|
void forward(MachineBasicBlock::iterator I) {
|
||||||
|
if (!Tracking && MBB->begin() != I) forward();
|
||||||
while (MBBI != I) forward();
|
while (MBBI != I) forward();
|
||||||
}
|
}
|
||||||
void backward(MachineBasicBlock::iterator I) {
|
void backward(MachineBasicBlock::iterator I) {
|
||||||
|
|||||||
Reference in New Issue
Block a user