mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2026-07-25 04:35:48 -04:00
3e03fb9d20
In a case where we have a no {un,}signed wrap flag on the increment, if
RHS - Start is constant then we can avoid inserting a max operation bewteen
the two, since we can statically determine which is greater.
This allows us to unroll loops such as:
void testcase3(int v) {
for (int i=v; i<=v+1; ++i)
f(i);
}
llvm-svn: 220960