When peeling loops basing on phis becoming invariants, we make a wrong loop size check.
UP.Threshold should be compared against the total numbers of instructions after the transformation,
which is equal to 2 * LoopSize in case of peeling one iteration.
We should also check that the maximum allowed number of peeled iterations is not zero.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
Need to add a negative test when the peeling doesn't happen due to UnrollPeelMaxCount = 0.