Skip to content

Commit 838aa54

Browse files
committed
Restore comment
1 parent cedc6f4 commit 838aa54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7943,6 +7943,9 @@ bool SimplifyCFGOpt::simplifySwitch(SwitchInst *SI, IRBuilder<> &Builder) {
79437943
if (Options.ForwardSwitchCondToPhi && forwardSwitchConditionToPHI(SI))
79447944
return requestResimplify();
79457945

7946+
// The conversion of switches to arithmetic or lookup table is disabled in
7947+
// the early optimization pipeline, as it may lose information or make the
7948+
// resulting code harder to analyze.
79467949
if (Options.ConvertSwitchToArithmetic || Options.ConvertSwitchToLookupTable)
79477950
if (simplifySwitchLookup(SI, Builder, DTU, DL, TTI,
79487951
Options.ConvertSwitchToLookupTable))

0 commit comments

Comments
 (0)