On Mon, Aug 31, 2020 at 10:06 AM Feng Xue OS via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> This patch is to fix a bug that cost that is used to evaluate clone candidate
> becomes negative due to integer overflow.

OK.

Richard.

> Feng
> ---
> 2020-08-31  Feng Xue  <f...@os.amperecomputing.com>
>
> gcc/
>         PR tree-optimization/96806
>         * ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
>         overflow.
>
> gcc/testsuite/
>         PR tree-optimization/96806
>         * g++.dg/ipa/pr96806.C: New test.

Reply via email to