1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 12:41:49 +01:00
Simon Pilgrim 2409bec523 [DAG] PromoteIntRes_ADDSUBSHLSAT - promote ISD::UADDSAT as clamped add
Similar to D96622, we're better off just promoting uaddsat(x,y) -> umin(add(x,y),c) instead of trying to perform a shifted uaddsat.

I initially tried to just use shifted promotion in cases where we didn't have a legal/custom umin - but we don't appear to have any targets that have uaddsat but not umin, so imo we're better off always using the umin and avoid an untested shifted uaddsat code path.

Differential Revision: https://reviews.llvm.org/D96767
2021-02-16 17:37:44 +00:00
..
2020-12-08 15:36:47 +00:00
2020-10-15 17:14:55 -04:00
2021-02-15 14:27:12 +08:00
2020-11-26 12:06:44 +00:00
2020-12-10 17:01:54 +08:00
2020-10-27 16:45:46 +00:00
2020-12-08 15:36:47 +00:00
2020-12-08 10:28:26 +00:00
2020-11-09 15:04:57 +00:00