projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6585b51
)
Add comments and move assignment statement. If sawStore is true, sawLoad does
author
Akira Hatanaka
<ahatanaka@mips.com>
Wed, 5 Oct 2011 01:09:37 +0000
(
01:09
+0000)
committer
Akira Hatanaka
<ahatanaka@mips.com>
Wed, 5 Oct 2011 01:09:37 +0000
(
01:09
+0000)
not have to be set.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141147
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/Mips/MipsDelaySlotFiller.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/Mips/MipsDelaySlotFiller.cpp
b/lib/Target/Mips/MipsDelaySlotFiller.cpp
index b69e5797a1e365688e51b4b0a8fd540e67c0e089..9d104476eeb2360b96e69bf075663b61a37854b1 100644
(file)
--- a/
lib/Target/Mips/MipsDelaySlotFiller.cpp
+++ b/
lib/Target/Mips/MipsDelaySlotFiller.cpp
@@
-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()) {