mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
Initialize IsFast* values
We must initialize these values in case some targets do not assign to them in allowsMemoryAccess().
This commit is contained in:
parent
0fd46fd26a
commit
fd389a668b
@ -16148,7 +16148,7 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode *St) {
|
||||
unsigned Elts = (i + 1) * NumMemElts;
|
||||
EVT Ty =
|
||||
EVT::getVectorVT(*DAG.getContext(), MemVT.getScalarType(), Elts);
|
||||
bool IsFast;
|
||||
bool IsFast = false;
|
||||
|
||||
// Break early when size is too large to be legal.
|
||||
if (Ty.getSizeInBits() > MaximumLegalStoreInBits)
|
||||
@ -16284,7 +16284,8 @@ bool DAGCombiner::MergeConsecutiveStores(StoreSDNode *St) {
|
||||
if (StoreTy.getSizeInBits() > MaximumLegalStoreInBits)
|
||||
break;
|
||||
|
||||
bool IsFastSt, IsFastLd;
|
||||
bool IsFastSt = false;
|
||||
bool IsFastLd = false;
|
||||
if (TLI.isTypeLegal(StoreTy) &&
|
||||
TLI.canMergeStoresTo(FirstStoreAS, StoreTy, DAG) &&
|
||||
TLI.allowsMemoryAccess(Context, DL, StoreTy,
|
||||
|
Loading…
Reference in New Issue
Block a user