llvm-project
cd206007 - [LoopConstrainer] Apply loop gurads to check that loop bounds are safe (#71531)

Commit
1 year ago
[LoopConstrainer] Apply loop gurads to check that loop bounds are safe (#71531) Loop guards that apply to loop SCEV bounds allow IRCE for cases with compound loop bounds such as: if (K > 0 && M > 0) for (i = 0; i < min(K, M); i++) {...} if (K > 0 && M > 0) for (i = min(K, M); i >= 0; i--) {...} Otherwise SCEV couldn't prove that loops have safe bounds in these cases. Co-authored-by: Aleksander Popov <apopov@azul.com>
Author
Parents
Loading