Remove dead code.
authorJacques Pienaar <jpienaar@google.com>
Mon, 8 Jul 2019 17:52:16 +0000 (10:52 -0700)
committerjpienaar <jpienaar@google.com>
Mon, 8 Jul 2019 19:39:48 +0000 (12:39 -0700)
PiperOrigin-RevId: 257012369

mlir/lib/Analysis/Utils.cpp

index 486c265525acae57ad9fa32edf8c490725948441..29631afdf28e15ce960007cccba14149086ce86c 100644 (file)
@@ -482,13 +482,6 @@ static Operation *getInstAtPosition(ArrayRef<unsigned> positions,
   return nullptr;
 }
 
-// Returns the MemRef accessed by load or store 'op'.
-static Value *getLoadOrStoreMemRef(Operation *op) {
-  if (auto loadOp = dyn_cast<AffineLoadOp>(op))
-    return loadOp.getMemRef();
-  return cast<AffineStoreOp>(op).getMemRef();
-}
-
 // Adds loop IV bounds to 'cst' for loop IVs not found in 'ivs'.
 LogicalResult addMissingLoopIVBounds(SmallPtrSet<Value *, 8> &ivs,
                                      FlatAffineConstraints *cst) {