Re: [PATCH] tree-ssa-math-opts: Fix up uaddc/usubc pattern matching [PR110271]

2023-06-16 Thread Richard Biener via Gcc-patches
> Am 16.06.2023 um 16:23 schrieb Jakub Jelinek : > > Hi! > > The following testcase ICEs, because I misremembered what the return value > from match_arith_overflow is. It isn't true if __builtin_*_overflow was > matched, but it is true only in the BIT_NOT_EXPR case if stmt was removed. > >

[PATCH] tree-ssa-math-opts: Fix up uaddc/usubc pattern matching [PR110271]

2023-06-16 Thread Jakub Jelinek via Gcc-patches
Hi! The following testcase ICEs, because I misremembered what the return value from match_arith_overflow is. It isn't true if __builtin_*_overflow was matched, but it is true only in the BIT_NOT_EXPR case if stmt was removed. So, if match_arith_overflow matches something, gsi_stmt (gsi) will not