summaryrefslogtreecommitdiffstats
path: root/mlir/test/lib/Transforms
diff options
context:
space:
mode:
authorNicolas Vasilache <ntv@google.com>2019-07-24 10:28:04 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-07-24 10:28:33 -0700
commit8ebb4281aa89ddfc1985f30873190a4598a81816 (patch)
tree8efde9da94d941b4cfb4f64b9c66b0a39aacbe6e /mlir/test/lib/Transforms
parent1ff95e5120ff20ab4bf66c0998b278ddf528e1a9 (diff)
downloadbcm5719-llvm-8ebb4281aa89ddfc1985f30873190a4598a81816.tar.gz
bcm5719-llvm-8ebb4281aa89ddfc1985f30873190a4598a81816.zip
Cleanup slicing test.
Remove hardcoded SSA names and make use of CHECK-LABEL directives. PiperOrigin-RevId: 259767803
Diffstat (limited to 'mlir/test/lib/Transforms')
-rw-r--r--mlir/test/lib/Transforms/TestVectorizationUtils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/mlir/test/lib/Transforms/TestVectorizationUtils.cpp b/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
index 4fd77c88ae0..b51de412306 100644
--- a/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
+++ b/mlir/test/lib/Transforms/TestVectorizationUtils.cpp
@@ -149,6 +149,7 @@ static NestedPattern patternTestSlicingOps() {
void VectorizerTestPass::testBackwardSlicing(llvm::raw_ostream &outs) {
auto f = getFunction();
+ outs << "\n" << f.getName();
SmallVector<NestedMatch, 8> matches;
patternTestSlicingOps().match(f, &matches);
@@ -164,6 +165,8 @@ void VectorizerTestPass::testBackwardSlicing(llvm::raw_ostream &outs) {
void VectorizerTestPass::testForwardSlicing(llvm::raw_ostream &outs) {
auto f = getFunction();
+ outs << "\n" << f.getName();
+
SmallVector<NestedMatch, 8> matches;
patternTestSlicingOps().match(f, &matches);
for (auto m : matches) {
@@ -178,6 +181,7 @@ void VectorizerTestPass::testForwardSlicing(llvm::raw_ostream &outs) {
void VectorizerTestPass::testSlicing(llvm::raw_ostream &outs) {
auto f = getFunction();
+ outs << "\n" << f.getName();
SmallVector<NestedMatch, 8> matches;
patternTestSlicingOps().match(f, &matches);
OpenPOWER on IntegriCloud