Remove dead code.

PiperOrigin-RevId: 257050780
This commit is contained in:
Jacques Pienaar 2019-07-08 14:01:09 -07:00 committed by A. Unique TensorFlower
parent 891a7911c2
commit 86580e71d2
1 changed files with 0 additions and 12 deletions

View File

@ -93,18 +93,6 @@ makeTiledLoopRanges(OpBuilder &b, Location loc, AffineMap map,
return res;
}
// E.g. for `A` in the expression:
// `A(i, k) * B(k, j) -> C(i, j)`
// and for map:
// `(i, j, k) -> (i, k)`
// and for `r` such that:
// `r == 1` (i.e. result `k`)
// returns 2 (i.e. `k` on the map domain).
static unsigned getPosInDomain(LinalgOp op, unsigned viewIndex, unsigned dim) {
auto map = loopToOperandRangesMaps(op)[viewIndex];
return map.getResult(dim).cast<AffineDimExpr>().getPosition();
}
namespace {
// Helper visitor to determine whether an AffineExpr is tiled.
// This is achieved by traversing every AffineDimExpr with position `pos` and