1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00
Keno Fischer ca6b59008b [SCEV] Add explicit representations of umin/smin
Summary:
Currently we express umin as `~umax(~x, ~y)`. However, this becomes
a problem for operands in non-integral pointer spaces, because `~x`
is not something we can compute for `x` non-integral. However, since
comparisons are generally still allowed, we are actually able to
express `umin(x, y)` directly as long as we don't try to express is
as a umax. Support this by adding an explicit umin/smin representation
to SCEV. We do this by factoring the existing getUMax/getSMax functions
into a new function that does all four. The previous two functions were
largely identical.

Reviewed By: sanjoy
Differential Revision: https://reviews.llvm.org/D50167

llvm-svn: 360159
2019-05-07 15:28:47 +00:00
..
2017-09-01 14:59:59 +00:00
2018-06-11 19:56:12 +00:00
2018-06-13 02:25:32 +00:00
2015-02-24 01:02:42 +00:00
2015-03-13 18:31:19 +00:00
2015-11-02 02:06:01 +00:00
2016-08-05 20:33:49 +00:00
2017-09-01 14:59:59 +00:00