This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ipa branch] SSA IPCP cleanups


> Hi,
> 
> Attached are some cleanups to IPCP code on ipa branch (SSA based IPCP) 
> 
> Bootstrapped/regtested with ipa-cp enabled on ppc-linux
> OK for ipa branch?
> 
> 2006-10-31  Razya Ladklesky  <razya@il.ibm.com>
>  
>                  * ipa-cp.c: Several cleanups.

-      init_stmt =
-	build2 (MODIFY_EXPR, void_type_node,
-		new_ssa /*default_def (parm1) */ , val);
-      TREE_OPERAND (init_stmt, 0) = new_ssa /*default_def (parm1) */ ;
-      SSA_NAME_DEF_STMT (new_ssa /*default_def (parm1) */ ) = init_stmt;
+      init_stmt = build2 (MODIFY_EXPR, void_type_node, new_ssa, val);
+      TREE_OPERAND (init_stmt, 0) = new_ssa;

This should be already done by build2 call above.

+  if (init_stmt)
+    if (ENTRY_BLOCK_PTR_FOR_FUNCTION (func)->succs)
This if should be redundant as FOR_EACH_EDGE should not iterate then.

Otherwise it seems fine.
Honza


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]