summaryrefslogtreecommitdiffstats
path: root/mlir/lib/Transforms/LoopFusion.cpp
diff options
context:
space:
mode:
authorJacques Pienaar <jpienaar@google.com>2018-11-07 10:24:03 -0800
committerjpienaar <jpienaar@google.com>2019-03-29 13:50:34 -0700
commitcc9a6ed09ddf75ad3964af5344b6fb74729d7a19 (patch)
tree7564cfa3a9c4e943c4ab43e5a08b941cb70541ae /mlir/lib/Transforms/LoopFusion.cpp
parenta150e0b33dec0bc27d52184a47fda28e6b857915 (diff)
downloadbcm5719-llvm-cc9a6ed09ddf75ad3964af5344b6fb74729d7a19.tar.gz
bcm5719-llvm-cc9a6ed09ddf75ad3964af5344b6fb74729d7a19.zip
Initialize Pass with PassID.
The passID is not currently stored in Pass but this avoids the unused variable warning. The passID is used to uniquely identify passes, currently this is only stored/used in PassInfo. PiperOrigin-RevId: 220485662
Diffstat (limited to 'mlir/lib/Transforms/LoopFusion.cpp')
-rw-r--r--mlir/lib/Transforms/LoopFusion.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/lib/Transforms/LoopFusion.cpp b/mlir/lib/Transforms/LoopFusion.cpp
index ae4647e143d..87657aeb359 100644
--- a/mlir/lib/Transforms/LoopFusion.cpp
+++ b/mlir/lib/Transforms/LoopFusion.cpp
@@ -42,7 +42,7 @@ namespace {
// TODO(andydavis) Extend this pass to check for fusion preventing dependences,
// and add support for more general loop fusion algorithms.
struct LoopFusion : public FunctionPass {
- LoopFusion() {}
+ LoopFusion() : FunctionPass(&LoopFusion::passID) {}
PassResult runOnMLFunction(MLFunction *f) override;
static char passID;
OpenPOWER on IntegriCloud