]> granicus.if.org Git - llvm/commitdiff
[AArch64] Add indexed check to splitStores. NFC.
authorNirav Dave <niravd@google.com>
Thu, 15 Jun 2017 14:47:44 +0000 (14:47 +0000)
committerNirav Dave <niravd@google.com>
Thu, 15 Jun 2017 14:47:44 +0000 (14:47 +0000)
Add explicit check for unhandled cases in preparation for delaying
splitStores to post-legalization.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@305471 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/AArch64/AArch64ISelLowering.cpp

index 059556a560c0c5f36122cc52b66075aee608f3d1..083ca2156598f16ff2dfd1938cbd1d56dcc422da 100644 (file)
@@ -9366,7 +9366,7 @@ static SDValue splitStores(SDNode *N, TargetLowering::DAGCombinerInfo &DCI,
     return SDValue();
 
   StoreSDNode *S = cast<StoreSDNode>(N);
-  if (S->isVolatile())
+  if (S->isVolatile() || S->isIndexed())
     return SDValue();
 
   SDValue StVal = S->getValue();