re PR tree-optimization/51030 (PHI opt does not handle value-replacement with a trans...
authorRichard Guenther <rguenther@suse.de>
Thu, 10 Nov 2011 12:24:52 +0000 (12:24 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 10 Nov 2011 12:24:52 +0000 (12:24 +0000)
commit98dd3b733fc0ca686b25c067bd0e38feebd6b565
tree96273c7665d053d22b52f8ece8c67593e4b6f93d
parent723afc4436e1c3753b152e0a14e6de5c52b07202
re PR tree-optimization/51030 (PHI opt does not handle value-replacement with a transfer function)

2011-11-10  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/51030
* tree-ssa-phiopt.c (jump_function_from_stmt): New function.
(value_replacement): Use it to handle trivial non-empty
intermediate blocks.

* gcc.dg/tree-ssa/phi-opt-6.c: New testcase.

From-SVN: r181254
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/phi-opt-6.c [new file with mode: 0644]
gcc/tree-ssa-phiopt.c