1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02: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:
Brian Cain 2020-03-13 15:24:19 -05:00
parent 0fd46fd26a
commit fd389a668b

View File

@ -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,