[Bug ipa/99122] [10/11 Regression] ICE in force_constant_size, at gimplify.c:733

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 18 11:26:12 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99122

--- Comment #10 from Richard Biener <rguenth at gcc dot gnu.org> ---
Like with

diff --git a/gcc/ipa-fnsummary.c b/gcc/ipa-fnsummary.c
index e32e69cd3ad..ac85be741b1 100644
--- a/gcc/ipa-fnsummary.c
+++ b/gcc/ipa-fnsummary.c
@@ -2775,7 +2775,12 @@ analyze_function_body (struct cgraph_node *node, bool
early)
                             (gimple_call_arg (stmt, i));
                    }
                }
-
+             for (unsigned int i = 0; i < gimple_call_num_args (stmt); ++i)
+               if (TREE_CODE (gimple_call_arg (stmt, i)) == WITH_SIZE_EXPR)
+                 {
+                   edge->inline_failed = CIF_FUNCTION_NOT_INLINABLE;
+                   break;
+                 }
              es->call_stmt_size = this_size;
              es->call_stmt_time = this_time;
              es->loop_depth = bb_loop_depth (bb);


More information about the Gcc-bugs mailing list