Add comments and move assignment statement. If sawStore is true, sawLoad does

not have to be set.

llvm-svn: 141147
This commit is contained in:
Akira Hatanaka 2011-10-05 01:09:37 +00:00
parent b345b5c424
commit 7d398636a2
1 changed files with 3 additions and 1 deletions

View File

@ -174,10 +174,12 @@ bool Filler::delayHasHazard(MachineBasicBlock::iterator candidate,
if (candidate->isImplicitDef() || candidate->isKill())
return true;
// Loads or stores cannot be moved past a store to the delay slot
// and stores cannot be moved past a load.
if (candidate->getDesc().mayLoad()) {
sawLoad = true;
if (sawStore)
return true;
sawLoad = true;
}
if (candidate->getDesc().mayStore()) {