Le 17/09/2025 à 00:31, Andrew Pinski a écrit :
diff --git a/gcc/tree-ssa-forwprop.cc b/gcc/tree-ssa-forwprop.cc
index 9d389e1b9bf..833a354ce2c 100644
--- a/gcc/tree-ssa-forwprop.cc
+++ b/gcc/tree-ssa-forwprop.cc
@@ -1528,6 +1528,66 @@ new_src_based_on_copy (tree src2, tree dest, tree src)
return fold_build1 (VIEW_CONVERT_EXPR,TREE_TYPE (src2), src);
}
+/* Returns true if SRC and DEST are the same address such that
+ `SRC == DEST;` is conisdered a nop. This is more than an
typo: considered
+ operand_equal_p check as it needs to be similar to
+ new_src_based_on_copy. */
+