This is a test case for the patches D52002 and D52707. The test case is for widening a switch instruction when the maximum value of a switch expression can be computed statically and at least 70% of those values have been given as switch cases. In that case widening the switch to include all the possible values and redirecting the newly added values to the default block causes a 3% improvement in performance due to the elimination of the conditional branch at the top of the switch to check for the default values.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This is a step in the right direction, but I think it should be possible to come up with a more simple hand-written test.