This also allows us to peel loops with a select:
for (int i = 0; i <= N; ++i); f3(i == 0 ? a : b); // select instruction
into:
f3(a); // peel one iteration for (int i = 1; i <= N; ++i) f3(b);
Differential D151052
[LoopUnroll] Peel iterations based on select conditions caojoshua on May 21 2023, 2:32 PM. Authored by
Details This also allows us to peel loops with a select: for (int i = 0; i <= N; ++i); f3(i == 0 ? a : b); // select instruction into: f3(a); // peel one iteration for (int i = 1; i <= N; ++i) f3(b);
Diff Detail
Event Timeline
Comment Actions LGTM
|
Why is this code needed now?