tree-ssa-ccp.c (likely_value): See if we have operands that are marked as never simul...
authorRichard Biener <rguenther@suse.de>
Thu, 16 Apr 2015 07:55:57 +0000 (07:55 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 16 Apr 2015 07:55:57 +0000 (07:55 +0000)
commit8a474dc5d7d152653e90e960eff1852d1c7ff914
tree649c5ed590a9bcfcc0ac37c15b11b36688be346a
parent8d1cac076c9ac75a81f15e2249ff9a92a0278516
tree-ssa-ccp.c (likely_value): See if we have operands that are marked as never simulate again and return...

2015-04-16  Richard Biener  <rguenther@suse.de>

* tree-ssa-ccp.c (likely_value): See if we have operands that
are marked as never simulate again and return CONSTANT in this
case.
* tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
not have any operands that will be simulated again as
not being simulated again.

* gcc.dg/tree-ssa/ssa-ccp-36.c: New testcase.
* gcc.dg/tree-ssa/pr37508.c: Adjust.
* gfortran.dg/reassoc_6.f: Remove XFAIL.

From-SVN: r222141
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr37508.c
gcc/testsuite/gcc.dg/tree-ssa/ssa-ccp-36.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/reassoc_6.f
gcc/tree-ssa-ccp.c
gcc/tree-ssa-propagate.c