[llvm-commits] CVS: llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Mar 12 21:24:11 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
PPCHazardRecognizers.cpp updated: 1.10 -> 1.11
---
Log message:
Fix a couple of bugs that broke the alpha tester build
---
Diffs of the changes: (+2 -2)
PPCHazardRecognizers.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp
diff -u llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp:1.10 llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp:1.11
--- llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp:1.10 Sun Mar 12 23:20:04 2006
+++ llvm/lib/Target/PowerPC/PPCHazardRecognizers.cpp Sun Mar 12 23:23:59 2006
@@ -106,7 +106,7 @@
int StoreOffs = StoreOffset->getValue();
int LoadOffs = LoadOffset->getValue();
if (StoreOffs < LoadOffs) {
- if (int(StoreOffs+StoreSize) > LoadOffs) return true;
+ if (int(StoreOffs+StoreSize[i]) > LoadOffs) return true;
} else {
if (int(LoadOffs+LoadSize) > StoreOffs) return true;
}
@@ -164,7 +164,7 @@
// If this is a load following a store, make sure it's not to the same or
// overlapping address.
- if (isLoad && StoreSize) {
+ if (isLoad && NumStores) {
unsigned LoadSize;
switch (Opcode) {
default: assert(0 && "Unknown load!");
More information about the llvm-commits
mailing list