mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-23 12:40:17 +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:
parent
9755faab60
commit
5b200d8a13
@ -98,6 +98,7 @@ public:
|
||||
/// forward / backward - Move the internal MBB iterator and update register
|
||||
/// states until it has processed the specific iterator.
|
||||
void forward(MachineBasicBlock::iterator I) {
|
||||
if (!Tracking && MBB->begin() != I) forward();
|
||||
while (MBBI != I) forward();
|
||||
}
|
||||
void backward(MachineBasicBlock::iterator I) {
|
||||
|
Loading…
Reference in New Issue
Block a user