tree-ssa-ccp.c (set_rhs): Change function to return a bool.
authorRoger Sayle <roger@eyesopen.com>
Sun, 4 Jul 2004 18:41:05 +0000 (18:41 +0000)
committerRoger Sayle <sayle@gcc.gnu.org>
Sun, 4 Jul 2004 18:41:05 +0000 (18:41 +0000)
commit06a9b53f08369e3d1a88af7461685fca40519514
treeb09498ce8cf001c12d71dcc6b23c6d3c16bf3ca4
parent43da93a7281a7c66c0ae23abdf9e501c4b5bbd88
tree-ssa-ccp.c (set_rhs): Change function to return a bool.

* tree-ssa-ccp.c (set_rhs): Change function to return a bool.
Ensure the replacement rhs is valid gimple before performing
the substitution.  Return false if these sanity checks fail.
(fold_stmt): Only set changed to true, if set_rhs returns true.
(execute_fold_all_builtins): Only call modify_stmt if set_rhs
succeeds.

From-SVN: r84091
gcc/ChangeLog
gcc/tree-ssa-ccp.c