re PR ipa/88788 (Infinite loop in malloc_candidate_p_1 since r264838)
authorRichard Biener <rguenther@suse.de>
Tue, 15 Jan 2019 09:37:22 +0000 (09:37 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Tue, 15 Jan 2019 09:37:22 +0000 (09:37 +0000)
commit4882e5badaad9a0174a8ace1d71448e0f824bdf1
tree0bb7abfc17baab57eebcdf05c0d18845fc846859
parent079a66801bfae16d282c9814266325569f91180d
re PR ipa/88788 (Infinite loop in malloc_candidate_p_1 since r264838)

2019-01-15  Richard Biener  <rguenther@suse.de>
    Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR ipa/88788
* ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
return true if SSA_NAME is already marked in visited bitmap.
(malloc_candidate_p): Pass visited to malloc_candidate_p_1.

Co-Authored-By: Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
From-SVN: r267933
gcc/ChangeLog
gcc/ipa-pure-const.c