Increment statistics counter NumSwitches at unswitchNontrivialInvariants() for unswitching a non-trivial switch instruction. This is to fix a bug that it increments NumBranches even for the case of switch instruction.
There is no functional change in this patch.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
One nit, otherwise LGTM.
llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp | ||
---|---|---|
2286 | The if(SI) is redundant. |
The if(SI) is redundant.
Lines 1923 and 2028 above already confirm either SI or BI exist.