2018-05-18 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
commitf4edcd48fbd9be111e17348184f40a3822334b09
authorprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2018 12:31:04 +0000 (18 12:31 +0000)
committerprathamesh3492 <prathamesh3492@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 May 2018 12:31:04 +0000 (18 12:31 +0000)
tree3b5a9fcb699e42d0db04126b33ecc6cd67e594fd
parentd19574debc50ff915c5d39c22a51cb0bc750e75d
2018-05-18  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR middle-end/85817
* ipa-pure-const.c (malloc_candidate_p): Remove the check integer_zerop
for retval and return false if all args to phi are zero.

testsuite/
* gcc.dg/tree-ssa/pr83648.c: Change scan-tree-dump to
scan-tree-dump-not for h.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@260358 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr83648.c