[PATCH] D84492: [SimplifyCFG] Enable branch predicate canonicalization by default

Yevgeny Rouban via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 24 00:06:39 PDT 2020


yrouban created this revision.
yrouban added reviewers: nikic, efriedma, kuhar.
Herald added a project: LLVM.

The introduction of the branch predicate canonicalization in SimplifyCFG might affect many users.
This patch allows a simple revert and further investigation for any found issues.


https://reviews.llvm.org/D84492

Files:
  llvm/lib/Transforms/Utils/SimplifyCFG.cpp


Index: llvm/lib/Transforms/Utils/SimplifyCFG.cpp
===================================================================
--- llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -145,7 +145,7 @@
 
 static cl::opt<bool>
     CanonicalizeBranchPredicates("simplifycfg-canonicalize-branch-predicates",
-                                 cl::Hidden, cl::init(false),
+                                 cl::Hidden, cl::init(true),
                                  cl::desc("Canonicalize branch predicates"));
 
 STATISTIC(NumBitMaps, "Number of switch instructions turned into bitmaps");


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84492.280341.patch
Type: text/x-patch
Size: 616 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200724/1ad80871/attachment.bin>


More information about the llvm-commits mailing list