llvm-project/llvm/test/Transforms/LoopVersioning
Nikita Popov c86e1ce73b [SCEVExpander] Simplify pointer overflow check
This is a followup to D104662 to generate slightly nicer code for
pointer overflow checks. Bypass expandAddToGEP and instead
explicitly generate i8 GEPs. This saves some bitcasts and negates
the value in a more obvious way. In particular, this prevents SCEV
from looking through the umul.with.overflow, same as in the integer
case.

The wrapping-pointer-ni.ll test deserves a comment: Previously,
this generated a typed GEP which used the umulo argument rather
than the multiplication result. This results in more compact IR in
that case, but effectively does the multiplication twice, the
second one is just hidden in the GEP. Reusing the umulo result
seems pretty reasonable to me.

Differential Revision: https://reviews.llvm.org/D109093
2021-09-02 20:15:59 +02:00
..
add-phi-update-users.ll [LoopUtils] Fix incorrect RT check bounds of loop-invariant mem accesses 2021-07-19 19:38:24 +08:00
basic.ll
convergent.ll
exit-block-dominates-rt-check-block.ll
incorrect-phi.ll
lcssa.ll
loop-invariant-bound.ll
noalias-version-twice.ll
noalias.ll
wrapping-pointer-versioning.ll [SCEVExpander] Simplify pointer overflow check 2021-09-02 20:15:59 +02:00