Commit 83c66c1e by Dan Nicolaescu Committed by Jeff Law

ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if the node was…

ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if the node was already a set to a constant.

	* ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
	the node was already a set to a constant.

From-SVN: r46468
parent b8a5867e
2001-10-24 Dan Nicolaescu <dann@ics.uci.edu>
* ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
the node was already a set to a constant.
Wed Oct 24 12:41:19 2001 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
* emit-rtl.c (set_mem_attributes): Fix typo in last change.
......
......@@ -866,8 +866,13 @@ ssa_ccp_substitute_constants ()
/* Do not try to simplify PHI nodes down to a constant load.
That will be done later as we translate out of SSA. Also,
doing that here could violate the rule that all PHI nodes
are consecutive at the start of the basic block. */
if (! PHI_NODE_P (def))
are consecutive at the start of the basic block.
Don't do anything to nodes that were already sets to
constants. */
if (! PHI_NODE_P (def)
&& ! ((GET_CODE (def) == INSN
&& GET_CODE (SET_SRC (set)) == CONST_INT)))
{
if (rtl_dump_file)
fprintf (rtl_dump_file,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment