diff options
author | Chris Lattner <sabre@nondot.org> | 2006-03-13 05:23:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-03-13 05:23:59 +0000 |
commit | 64ce964673ca5c71f46933d8699aa557fbc5f15a (patch) | |
tree | 6412fcc1590fffc685893b41f6f54f0dde1918a9 | |
parent | 3faad495bc5c23de4852e7a3a13c25203cabfc3e (diff) | |
download | external_llvm-64ce964673ca5c71f46933d8699aa557fbc5f15a.zip external_llvm-64ce964673ca5c71f46933d8699aa557fbc5f15a.tar.gz external_llvm-64ce964673ca5c71f46933d8699aa557fbc5f15a.tar.bz2 |
Fix a couple of bugs that broke the alpha tester build
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26722 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/PowerPC/PPCHazardRecognizers.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Target/PowerPC/PPCHazardRecognizers.cpp b/lib/Target/PowerPC/PPCHazardRecognizers.cpp index 26548e7..d7f9c10 100644 --- a/lib/Target/PowerPC/PPCHazardRecognizers.cpp +++ b/lib/Target/PowerPC/PPCHazardRecognizers.cpp @@ -106,7 +106,7 @@ isLoadOfStoredAddress(unsigned LoadSize, SDOperand Ptr1, SDOperand Ptr2) const { 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 @@ getHazardType(SDNode *Node) { // 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!"); |