From 1c32bf396eb690a54fd94487e3f258b2c7d31753 Mon Sep 17 00:00:00 2001 From: Georgios Pinitas Date: Mon, 12 Nov 2018 18:36:19 +0000 Subject: COMPMID-1451: Perform fusion before GroupConvolution unrolling Change-Id: Id94fb9c88a498d7b938f4f707e2e7b9b6df94880 --- src/graph/Utils.cpp | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) (limited to 'src/graph/Utils.cpp') diff --git a/src/graph/Utils.cpp b/src/graph/Utils.cpp index 0a85a7f119..71ec548f8a 100644 --- a/src/graph/Utils.cpp +++ b/src/graph/Utils.cpp @@ -78,20 +78,16 @@ PassManager create_default_pass_manager(Target target) { PassManager pm; + const bool is_target_gc = target == Target::GC; + // Passes that mutate graph IR + pm.append(support::cpp14::make_unique(), !is_target_gc); pm.append(support::cpp14::make_unique()); - if(target != Target::GC) - { - pm.append(support::cpp14::make_unique()); - pm.append(support::cpp14::make_unique()); - } + pm.append(support::cpp14::make_unique(), !is_target_gc); // Passes that mutate backend information - if(target != Target::GC) - { - pm.append(support::cpp14::make_unique()); - pm.append(support::cpp14::make_unique()); - } + pm.append(support::cpp14::make_unique(), !is_target_gc); + pm.append(support::cpp14::make_unique(), !is_target_gc); pm.append(support::cpp14::make_unique()); return pm; -- cgit v1.2.1