projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02975d7
)
Remove dead code.
author
Jacques Pienaar
<jpienaar@google.com>
Mon, 8 Jul 2019 17:52:16 +0000
(10:52 -0700)
committer
jpienaar
<jpienaar@google.com>
Mon, 8 Jul 2019 19:39:48 +0000
(12:39 -0700)
PiperOrigin-RevId:
257012369
mlir/lib/Analysis/Utils.cpp
patch
|
blob
|
history
diff --git
a/mlir/lib/Analysis/Utils.cpp
b/mlir/lib/Analysis/Utils.cpp
index 486c265525acae57ad9fa32edf8c490725948441..29631afdf28e15ce960007cccba14149086ce86c 100644
(file)
--- a/
mlir/lib/Analysis/Utils.cpp
+++ b/
mlir/lib/Analysis/Utils.cpp
@@
-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) {