llvm.org GIT mirror llvm / 6537e20
Merging r276479: ------------------------------------------------------------------------ r276479 | asbirlea | 2016-07-22 15:02:19 -0700 (Fri, 22 Jul 2016) | 11 lines Add flag to PassManagerBuilder to disable GVN Hoist Pass. Summary: Adding a flag to diable GVN Hoisting by default. Note: The GVN Hoist Pass causes some Halide tests to hang. Halide will disable the pass while investigating. Reviewers: llvm-commits, chandlerc, spop, dberlin Subscribers: mehdi_amini Differential Revision: https://reviews.llvm.org/D22639 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_39@276647 91177308-0d34-0410-b5e6-96231b3b80d8 Hans Wennborg 4 years ago
1 changed file(s) with 6 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
133133 cl::desc("Control the amount of inlining in pre-instrumentation inliner "
134134 "(default = 75)"));
135135
136 static cl::opt EnableGVNHoist(
137 "enable-gvn-hoist", cl::init(false), cl::Hidden,
138 cl::desc("Enable the experimental GVN Hoisting pass"));
139
136140 PassManagerBuilder::PassManagerBuilder() {
137141 OptLevel = 2;
138142 SizeLevel = 0;
231235 FPM.add(createCFGSimplificationPass());
232236 FPM.add(createSROAPass());
233237 FPM.add(createEarlyCSEPass());
234 FPM.add(createGVNHoistPass());
238 if(EnableGVNHoist)
239 FPM.add(createGVNHoistPass());
235240 FPM.add(createLowerExpectIntrinsicPass());
236241 }
237242