Use regex to fix failure when stats are disabled.
authorRiver Riddle <riverriddle@google.com>
Fri, 6 Dec 2019 17:28:48 +0000 (09:28 -0800)
committerA. Unique TensorFlower <gardener@tensorflow.org>
Fri, 6 Dec 2019 17:29:14 +0000 (09:29 -0800)
commit79047e1ab5649ddca0253178ce21b376f15bfc4b
tree79266876a72918dfbfbbf30e438310e6955d2546
parent41f8e105faef4035c0fafdf13cf095dfa7c5fb01
Use regex to fix failure when stats are disabled.

It would be nice if we could detect if stats were enabled or not and use 'Requires', but this isn't possible to do at configure time.

Fixes tensorflow/mlir#296

PiperOrigin-RevId: 284200271
mlir/test/Pass/pipeline-stats.mlir