]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
PHIOPT: Fix comment before factor_out_conditional_operation
authorAndrew Pinski <pinskia@gmail.com>
Mon, 6 Nov 2023 03:27:51 +0000 (19:27 -0800)
committerAndrew Pinski <quic_apinski@quicinc.com>
Fri, 16 Aug 2024 00:11:01 +0000 (17:11 -0700)
I didn't update the comment before factor_out_conditional_operation
correctly. this updates it to be correct and mentions unary operations
rather than just conversions.

Pushed as obvious.

gcc/ChangeLog:

* tree-ssa-phiopt.cc (factor_out_conditional_operation): Update
comment.

gcc/tree-ssa-phiopt.cc

index f05ca727503b057fbc0723895ca4503180e28ea8..aacccc414f6b8cec83fbd4b63fc9b5d6c1b0b85e 100644 (file)
@@ -212,7 +212,7 @@ replace_phi_edge_with_variable (basic_block cond_block,
 }
 
 /* PR66726: Factor operations out of COND_EXPR.  If the arguments of the PHI
-   stmt are CONVERT_STMT, factor out the conversion and perform the conversion
+   stmt are Unary operator, factor out the operation and perform the operation
    to the result of PHI stmt.  COND_STMT is the controlling predicate.
    Return the newly-created PHI, if any.  */