Files
clang-p2996/llvm/test/Transforms/LoopVersioning/wrapping-pointer-non-integral-addrspace.ll
Florian Hahn f395a4f8d5 [SCEVExpand] Only create required predicate checks.
Currently generateOverflowCheck always creates code for Step being
negative and positive, followed by a select at the end depending on
Step's sign.

This patch updates the code to only create either the checks for step
being positive or negative, if the sign is known.

Follow-up to D116696.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D116747
2022-01-07 14:49:02 +00:00

2.3 KiB