mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
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
This commit is contained in:
parent
3faad495bc
commit
64ce964673
@ -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!");
|
||||
|
Loading…
Reference in New Issue
Block a user