[llvm] b2dda33 - [NFC] SimplifyCFGPass::SimplifyCFGPass(): use default SimplifyCFGOptions - we aren't deviating from them here

Roman Lebedev via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 16 03:40:30 PDT 2020


Author: Roman Lebedev
Date: 2020-07-16T13:40:02+03:00
New Revision: b2dda33034934ead00ff8601ce5df487b0e760e9

URL: https://github.com/llvm/llvm-project/commit/b2dda33034934ead00ff8601ce5df487b0e760e9
DIFF: https://github.com/llvm/llvm-project/commit/b2dda33034934ead00ff8601ce5df487b0e760e9.diff

LOG: [NFC] SimplifyCFGPass::SimplifyCFGPass(): use default SimplifyCFGOptions - we aren't deviating from them here

Added: 
    

Modified: 
    llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h

Removed: 
    


################################################################################
diff  --git a/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h b/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
index 3625eb176b83..978562186eba 100644
--- a/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
+++ b/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
@@ -34,13 +34,7 @@ class SimplifyCFGPass : public PassInfoMixin<SimplifyCFGPass> {
   /// rather than optimal IR. That is, by default we bypass transformations that
   /// are likely to improve performance but make analysis for other passes more
   /// 
diff icult.
-  SimplifyCFGPass()
-      : SimplifyCFGPass(SimplifyCFGOptions()
-                            .forwardSwitchCondToPhi(false)
-                            .convertSwitchToLookupTable(false)
-                            .needCanonicalLoops(true)
-                            .sinkCommonInsts(false)) {}
-
+  SimplifyCFGPass() {}
 
   /// Construct a pass with optional optimizations.
   SimplifyCFGPass(const SimplifyCFGOptions &PassOptions);


        


More information about the llvm-commits mailing list