https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68474

--- Comment #3 from rsandifo at gcc dot gnu.org <rsandifo at gcc dot gnu.org> 
---
Author: rsandifo
Date: Tue Dec  1 14:53:53 2015
New Revision: 231115

URL: https://gcc.gnu.org/viewcvs?rev=231115&root=gcc&view=rev
Log:
PR68474: Fix tree-call-cdce.c:use_internal_fn

We'd call gen_shrink_wrap_conditions for functions that it can't handle
but edom_only_function can.

Tested on x86_64-linux-gnu.

gcc/
        PR tree-optimization/68474
        * tree-call-cdce.c (use_internal_fn): Protect call to
        gen_shrink_wrap_conditions.

gcc/testsuite/
        PR tree-optimization/68474
        * gcc.dg/pr68474.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr68474.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-call-cdce.c

Reply via email to