[PATCH] Fix ICE in ipa-cp due to cost addition overflow (PR 96806)
Feng Xue OS
Mon Aug 31 08:05:51 GMT 2020
This patch is to fix a bug that cost that is used to evaluate clone candidate
becomes negative due to integer overflow.
2020-08-31 Feng Xue <email@example.com>
* ipa-cp.c (decide_about_value): Use safe_add to avoid cost addition
* g++.dg/ipa/pr96806.C: New test.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 2845 bytes
More information about the Gcc-patches