PR68474: Fix tree-call-cdce.c:use_internal_fn
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 1 Dec 2015 14:53:53 +0000 (14:53 +0000)
committerRichard Sandiford <rsandifo@gcc.gnu.org>
Tue, 1 Dec 2015 14:53:53 +0000 (14:53 +0000)
commit6c59645f5de1af1dff9715a5bd30f21f29cf2607
tree6121ab77960eee153560c2f4bde6de4dece328a6
parent5797378aabcc51ef4de094f0160e451b45d6cfb7
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.

From-SVN: r231115
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr68474.c [new file with mode: 0644]
gcc/tree-call-cdce.c