Commit 4577cea1 by Xinliang David Li Committed by Xinliang David Li

Fix for PR39548

From-SVN: r145118
parent 0f7464f4
2009-03-27 Xinliang David Li <davidxl@google.com>
PR tree-optimization/39548
* tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
candidate check.
2009-03-27 H.J. Lu <hongjiu.lu@intel.com>
* c-common.c (pointer_int_sum): Use %wd on return from
......
2009-03-27 Xinliang David Li <davidxl@google.com>
PR tree-optimization/39548
* g++.dg/tree-ssa/copyprop.C: New test.
2009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
PR c++/38638
......
......@@ -908,7 +908,8 @@ copy_prop_visit_phi_node (gimple phi)
}
}
if (phi_val.value && set_copy_of_val (lhs, phi_val.value))
if (phi_val.value && may_propagate_copy (lhs, phi_val.value)
&& set_copy_of_val (lhs, phi_val.value))
retval = (phi_val.value != lhs) ? SSA_PROP_INTERESTING : SSA_PROP_VARYING;
else
retval = SSA_PROP_NOT_INTERESTING;
......
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