From: Max Kazantsev Date: Wed, 13 Feb 2019 06:12:48 +0000 (+0000) Subject: [LoopSimplifyCFG] Re-enable const branch folding by default X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9b0581974207d38a5ef880bed858a33e6cbf12db;p=llvm [LoopSimplifyCFG] Re-enable const branch folding by default Known underlying bugs have been fixed, intensive fuzz testing did not find any new problems. Re-enabling by default. Feel free to revert if it causes any functional failures. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353911 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/Scalar/LoopSimplifyCFG.cpp b/lib/Transforms/Scalar/LoopSimplifyCFG.cpp index 4058c1d685c..746ca9ec31b 100644 --- a/lib/Transforms/Scalar/LoopSimplifyCFG.cpp +++ b/lib/Transforms/Scalar/LoopSimplifyCFG.cpp @@ -41,7 +41,7 @@ using namespace llvm; #define DEBUG_TYPE "loop-simplifycfg" static cl::opt EnableTermFolding("enable-loop-simplifycfg-term-folding", - cl::init(false)); + cl::init(true)); STATISTIC(NumTerminatorsFolded, "Number of terminators folded to unconditional branches");