Replace explicit concatenation by llvm::concat

PiperOrigin-RevId: 280258938
This commit is contained in:
Nicolas Vasilache 2019-11-13 12:54:02 -08:00 committed by A. Unique TensorFlower
parent 0bd6390b54
commit 8abda15b3f
1 changed files with 2 additions and 4 deletions

View File

@ -207,12 +207,10 @@ makeTiledViews(OpBuilder &b, Location loc, LinalgOp linalgOp,
// Traverse the mins/maxes and erase those that don't have uses left.
// This is a special type of folding that we only apply when `folder` is
// defined.
if (folder) {
lbs.append(subViewSizes.begin(), subViewSizes.end());
for (auto *v : lbs)
if (folder)
for (auto *v : llvm::concat<Value *>(lbs, subViewSizes))
if (v->use_empty())
v->getDefiningOp()->erase();
}
return res;
}