re PR middle-end/85817 (ICE in expand_call at gcc/calls.c:4291)
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Fri, 18 May 2018 12:31:04 +0000 (12:31 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Fri, 18 May 2018 12:31:04 +0000 (12:31 +0000)
commitbec3ee81e3c60bc4e8001871ede2b0b07ff417f1
tree3b5a9fcb699e42d0db04126b33ecc6cd67e594fd
parentb55fbca39ee2568d007ce835f7684f3d2ec2e986
re PR middle-end/85817 (ICE in expand_call at gcc/calls.c:4291)

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.

From-SVN: r260358
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr83648.c