]> git.ipfire.org Git - thirdparty/gcc.git/commit - gcc/tree-ssa-ccp.c
re PR tree-optimization/21574 (store_ccp doesn't see through a store.)
authorSteven Bosscher <stevenb@suse.de>
Wed, 17 Aug 2005 07:27:47 +0000 (07:27 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 17 Aug 2005 07:27:47 +0000 (07:27 +0000)
commita318e3acf8617f5bc13484b821431a02c65af200
treef3af9a3da3ad3d027544e4a1675247dac1d70538
parenta7edd66b06ff2f0e6510e3d4c71564f4fd5d0cef
re PR tree-optimization/21574 (store_ccp doesn't see through a store.)

PR tree-optimization/21574
* tree-ssa-ccp.c (likely_value): If the right hand side is a
constant, return CONSTANT.
(ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
(ccp_fold, visit_assignment): Likewise.
(evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.

From-SVN: r103206
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr21574.c [new file with mode: 0644]
gcc/tree-ssa-ccp.c