re PR tree-optimization/85787 (malloc_candidate_p fails to detect malloc attribute...
authorPrathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
Thu, 4 Oct 2018 11:06:24 +0000 (11:06 +0000)
committerPrathamesh Kulkarni <prathamesh3492@gcc.gnu.org>
Thu, 4 Oct 2018 11:06:24 +0000 (11:06 +0000)
commit9a471714928470c52b21586dd135658a02317c69
treeab6181264f54875968f849d28ea8d210c8ee8551
parent75fcc3eb1be8cd8079eb9e1840295ef950d6dc4a
re PR tree-optimization/85787 (malloc_candidate_p fails to detect malloc attribute on nested phis)

2018-10-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>

PR tree-optimization/85787
* ipa-pure-const.c (malloc_candidate_p_1): Move most of malloc_candidate_p
into this function and add support for detecting multiple phis.
(DUMP_AND_RETURN): Move from malloc_candidate_p into top-level macro.

testsuite/
* gcc.dg/ipa/propmalloc-4.c: New test.

From-SVN: r264838
gcc/ChangeLog
gcc/ipa-pure-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/propmalloc-4.c [new file with mode: 0644]