summaryrefslogtreecommitdiffstats
path: root/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h')
-rw-r--r--llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h b/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
index e955673283e..ed6b1b1853b 100644
--- a/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
+++ b/llvm/include/llvm/Transforms/Scalar/SimplifyCFG.h
@@ -31,16 +31,16 @@ class SimplifyCFGPass : public PassInfoMixin<SimplifyCFGPass> {
SimplifyCFGOptions Options;
public:
- /// The default constructor sets the pass options to create optimal IR,
- /// rather than canonical IR. That is, by default we do transformations that
- /// are likely to improve performance but make analysis more difficult.
- /// FIXME: This is inverted from what most instantiations of the pass should
- /// be.
+ /// The default constructor sets the pass options to create canonical IR,
+ /// rather than optimal IR. That is, by default we bypass transformations that
+ /// are likely to improve performance but make analysis for other passes more
+ /// difficult.
SimplifyCFGPass()
: SimplifyCFGPass(SimplifyCFGOptions()
- .forwardSwitchCondToPhi(true)
- .convertSwitchToLookupTable(true)
- .needCanonicalLoops(false)) {}
+ .forwardSwitchCondToPhi(false)
+ .convertSwitchToLookupTable(false)
+ .needCanonicalLoops(true)) {}
+
/// Construct a pass with optional optimizations.
SimplifyCFGPass(const SimplifyCFGOptions &PassOptions);
OpenPOWER on IntegriCloud