mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-04 21:30:49 +00:00
misched: initialize BB
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@155226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d4786e221c
commit
918f38ab24
@ -126,7 +126,8 @@ static const Value *getUnderlyingObjectForInstr(const MachineInstr *MI,
|
||||
return 0;
|
||||
}
|
||||
|
||||
void ScheduleDAGInstrs::startBlock(MachineBasicBlock *BB) {
|
||||
void ScheduleDAGInstrs::startBlock(MachineBasicBlock *bb) {
|
||||
BB = bb;
|
||||
LoopRegs.Deps.clear();
|
||||
if (MachineLoop *ML = MLI.getLoopFor(BB))
|
||||
if (BB == ML->getLoopLatch())
|
||||
@ -134,6 +135,7 @@ void ScheduleDAGInstrs::startBlock(MachineBasicBlock *BB) {
|
||||
}
|
||||
|
||||
void ScheduleDAGInstrs::finishBlock() {
|
||||
BB = 0;
|
||||
// Nothing to do.
|
||||
}
|
||||
|
||||
@ -159,7 +161,7 @@ void ScheduleDAGInstrs::enterRegion(MachineBasicBlock *bb,
|
||||
MachineBasicBlock::iterator begin,
|
||||
MachineBasicBlock::iterator end,
|
||||
unsigned endcount) {
|
||||
BB = bb;
|
||||
assert(bb == BB && "startBlock should set BB");
|
||||
RegionBegin = begin;
|
||||
RegionEnd = end;
|
||||
EndIndex = endcount;
|
||||
|
Loading…
Reference in New Issue
Block a user