mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-03 02:08:54 +00:00
Fixed a minor bug preventing some pre-indexed load / store transformation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31543 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3822ff5c71
commit
a4f53ef527
@ -239,8 +239,8 @@ namespace {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Now check for #1 and #2.
|
// Now check for #1 and #2.
|
||||||
unsigned NumRealUses = 0;
|
|
||||||
if (OffIsAMImm) {
|
if (OffIsAMImm) {
|
||||||
|
unsigned NumRealUses = 0;
|
||||||
for (SDNode::use_iterator I = Ptr.Val->use_begin(),
|
for (SDNode::use_iterator I = Ptr.Val->use_begin(),
|
||||||
E = Ptr.Val->use_end(); I != E; ++I) {
|
E = Ptr.Val->use_end(); I != E; ++I) {
|
||||||
SDNode *Use = *I;
|
SDNode *Use = *I;
|
||||||
@ -260,9 +260,9 @@ namespace {
|
|||||||
} else
|
} else
|
||||||
NumRealUses++;
|
NumRealUses++;
|
||||||
}
|
}
|
||||||
|
if (NumRealUses == 0)
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
if (NumRealUses == 0)
|
|
||||||
return false;
|
|
||||||
|
|
||||||
SDOperand Result = isLoad
|
SDOperand Result = isLoad
|
||||||
? DAG.getIndexedLoad(SDOperand(N,0), BasePtr, Offset, AM)
|
? DAG.getIndexedLoad(SDOperand(N,0), BasePtr, Offset, AM)
|
||||||
|
Loading…
Reference in New Issue
Block a user