diff options
author | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-11-21 05:04:30 +0000 |
---|---|---|
committer | Alexandre Oliva <aoliva@gcc.gnu.org> | 2009-11-21 05:04:30 +0000 |
commit | 21cf718065ecda762be39bd34606b29239d2efaf (patch) | |
tree | 45cdd369007484a44434fbf6ca63aa95185eabd6 /gcc/tree-ssa-math-opts.c | |
parent | 04482dd1056ef5718524cefc4b43c5ef7eea986f (diff) | |
download | gcc-21cf718065ecda762be39bd34606b29239d2efaf.zip gcc-21cf718065ecda762be39bd34606b29239d2efaf.tar.gz gcc-21cf718065ecda762be39bd34606b29239d2efaf.tar.bz2 |
re PR tree-optimization/42078 (ICE in gimple_assign_set_rhs_code)
gcc/ChangeLog:
PR tree-optimization/42078
* gimple.h (gimple_replace_lhs): New declaration.
* gimple.c (gimple_replace_lhs): New function.
* tree-ssa-math-opts.c (execute_cse_reciprocals): Call it before
modifying the call.
gcc/testsuite/ChangeLog:
PR tree-optimization/42078
* gcc.dg/pr42078.c: New test.
From-SVN: r154400
Diffstat (limited to 'gcc/tree-ssa-math-opts.c')
-rw-r--r-- | gcc/tree-ssa-math-opts.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-math-opts.c b/gcc/tree-ssa-math-opts.c index c0ddc8a..948707e 100644 --- a/gcc/tree-ssa-math-opts.c +++ b/gcc/tree-ssa-math-opts.c @@ -563,6 +563,7 @@ execute_cse_reciprocals (void) if (fail) continue; + gimple_replace_lhs (stmt1, arg1); gimple_call_set_fndecl (stmt1, fndecl); update_stmt (stmt1); |