summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@gmail.com>2019-12-26 18:19:48 -0800
committerEric Christopher <echristo@gmail.com>2019-12-26 18:20:15 -0800
commit30617e4b9c871882c6fc765d12eb85c1aba87139 (patch)
tree5d8c541b5ffdc68e2757decc21794b357081b03c
parent5ca97d0defeed38feec2352692f6bb80297d6712 (diff)
downloadbcm5719-llvm-30617e4b9c871882c6fc765d12eb85c1aba87139.tar.gz
bcm5719-llvm-30617e4b9c871882c6fc765d12eb85c1aba87139.zip
Remove unused static function.
-rw-r--r--mlir/lib/Dialect/VectorOps/VectorTransforms.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/mlir/lib/Dialect/VectorOps/VectorTransforms.cpp b/mlir/lib/Dialect/VectorOps/VectorTransforms.cpp
index 28b803f7cde..15dffe198df 100644
--- a/mlir/lib/Dialect/VectorOps/VectorTransforms.cpp
+++ b/mlir/lib/Dialect/VectorOps/VectorTransforms.cpp
@@ -104,21 +104,6 @@ static Operation *cloneOpWithOperandsAndTypes(PatternRewriter &builder,
return builder.createOperation(res);
}
-static Value makeSplatZero(Location loc, PatternRewriter &rewriter,
- VectorType vt) {
- auto t = vt.getElementType();
- Value f = nullptr;
- if (t.isBF16() || t.isF16())
- f = rewriter.create<ConstantOp>(loc, t, rewriter.getF64FloatAttr(0.0f));
- else if (t.isF32())
- f = rewriter.create<ConstantOp>(loc, t, rewriter.getF32FloatAttr(0.0f));
- else if (t.isF64())
- f = rewriter.create<ConstantOp>(loc, t, rewriter.getF64FloatAttr(0.0f));
- if (f)
- return rewriter.create<SplatOp>(loc, vt, f);
- llvm_unreachable("Unsupported type in `makeSplatZero`");
-}
-
// Populates 'resultElements[indexMap[i]]' with elements from 'inputElements[i]'
// for each index 'i' in inputElements with a valid mapping in 'indexMap'.
static void getMappedElements(const DenseMap<int64_t, int64_t> &indexMap,
OpenPOWER on IntegriCloud