mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-04-11 20:22:02 +00:00
Fix RegScavenger::forward() to work on basic blocks containing exactly
one instruction. llvm-svn: 61236
This commit is contained in:
parent
40ff87ab97
commit
1e66a47f73
@ -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) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user