Commit Graph

4 Commits

Author SHA1 Message Date
Florian Hahn 8e6d481f3b
[ConstraintElimination] Simplify ssub(A,B) if B s>=b && B s>=0.
A first patch to use the reasoning in ConstraintElimination to simplify
sub with overflow to a regular sub, if the operation is guaranteed to
not overflow.

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D125264
2022-05-13 13:19:41 +01:00
Florian Hahn 1911843c31
[ConstraintElimination] Add extra tests for different overflows.
Additional tests for D125264, inspired by @spatel.
2022-05-11 21:20:42 +01:00
Florian Hahn 301fe084bf
[ConstraintElimination] Add test where ssub result is not used.
Extra tests for D125264.
2022-05-11 16:10:25 +01:00
Florian Hahn 61bb2e4ea8
[ConstraintElimination] Add initial ssub.with.overflow tests. 2022-05-09 10:02:59 +01:00