[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp PPCHazardRecognizers.h
Chris Lattner
lattner at cs.uiuc.edu
Tue Mar 7 08:19:59 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCHazardRecognizers.cpp updated: 1.4 -> 1.5
PPCHazardRecognizers.h updated: 1.2 -> 1.3
---
Log message:
add a couple more load/store instrs, add a newline to the end of file.
---
Diffs of the changes: (+17 -2)
PPCHazardRecognizers.cpp | 16 +++++++++++++++-
PPCHazardRecognizers.h | 3 ++-
2 files changed, 17 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
diff -u llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp:1.4 llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp:1.5
--- llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp:1.4 Tue Mar 7 02:30:27 2006
+++ llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp Tue Mar 7 10:19:46 2006
@@ -90,9 +90,16 @@
case PPC::LWZ:
case PPC::LFSX:
case PPC::LWZX:
+ case PPC::LBZ:
+ case PPC::LHA:
+ case PPC::LHZ:
+ case PPC::LWZU:
return LSU_LD;
case PPC::STFD:
case PPC::STW:
+ case PPC::STB:
+ case PPC::STH:
+ case PPC::STWU:
return LSU_ST;
case PPC::DIVW:
case PPC::DIVWU:
@@ -188,6 +195,10 @@
unsigned LoadSize;
switch (Opcode) {
default: assert(0 && "Unknown load!");
+ case PPC::LBZ: LoadSize = 1; break;
+ case PPC::LHA:
+ case PPC::LHZ: LoadSize = 2; break;
+ case PPC::LWZU:
case PPC::LFSX:
case PPC::LFS:
case PPC::LWZX:
@@ -217,8 +228,11 @@
StorePtr2 = Node->getOperand(2);
switch (Opcode) {
default: assert(0 && "Unknown store instruction!");
- case PPC::STFD: StoreSize = 8; break;
+ case PPC::STB: StoreSize = 1; break;
+ case PPC::STH: StoreSize = 2; break;
+ case PPC::STWU:
case PPC::STW: StoreSize = 4; break;
+ case PPC::STFD: StoreSize = 8; break;
}
}
Index: llvm/lib/Target/PowerPC/PPCHazardRecognizers.h
diff -u llvm/lib/Target/PowerPC/PPCHazardRecognizers.h:1.2 llvm/lib/Target/PowerPC/PPCHazardRecognizers.h:1.3
--- llvm/lib/Target/PowerPC/PPCHazardRecognizers.h:1.2 Tue Mar 7 02:30:27 2006
+++ llvm/lib/Target/PowerPC/PPCHazardRecognizers.h Tue Mar 7 10:19:46 2006
@@ -77,4 +77,5 @@
} // end namespace llvm
-#endif
\ No newline at end of file
+#endif
+
More information about the llvm-commits
mailing list