mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-31 07:43:37 +00:00
Add comments and move assignment statement. If sawStore is true, sawLoad does
not have to be set. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141147 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6585b51821
commit
cfc3fb5737
@ -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()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user