Re: [PATCHv2] MATCH: Factor out code that for min max detection with constants

2023-04-28 Thread Richard Biener via Gcc-patches
On Fri, Apr 28, 2023 at 5:25 AM Andrew Pinski via Gcc-patches wrote: > > This factors out some of the code from the min/max detection > from match.pd into a function so it can be reused in other > places. This is mainly used to detect the conversions > of >= to > which causes the integer values to

[PATCHv2] MATCH: Factor out code that for min max detection with constants

2023-04-27 Thread Andrew Pinski via Gcc-patches
This factors out some of the code from the min/max detection from match.pd into a function so it can be reused in other places. This is mainly used to detect the conversions of >= to > which causes the integer values to be changed by one. Changes since v1: * factor out the checks for INTEGER_CSTs