https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64253
Bug ID: 64253 Summary: [5 Regression] IPA inline analysis processes a code transform operation Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: ipa Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org CC: hubicka at ucw dot cz Hello. I created this issue as underlying problem for PR63909, where one can find a testcase. Problem is that a BB is split here: #0 gsi_split_seq_before (i=0x7fffffffd550, pnew_seq=0x7fffffffd528) at ../../gcc/gimple-iterator.c:429 #1 0x0000000000b95a2a in gimple_split_block (bb=0x7ffff6c41548, stmt=0x0) at ../../gcc/tree-cfg.c:5707 #2 0x00000000007563cf in split_block (bb=0x7ffff6c41548, i=i@entry=0x0) at ../../gcc/cfghooks.c:508 #3 0x0000000000756b44 in split_block_after_labels (bb=<optimized out>) at ../../gcc/cfghooks.c:549 #4 make_forwarder_block (bb=<optimized out>, redirect_edge_p=redirect_edge_p@entry=0x75d4e0 <mfb_keep_just(edge_def*)>, new_bb_cbk=new_bb_cbk@entry=0x0) at ../../gcc/cfghooks.c:842 #5 0x000000000076085a in create_preheader (loop=0x7ffff6d56948, flags=<optimized out>) at ../../gcc/cfgloopmanip.c:1563 #6 0x0000000000760aea in create_preheaders (flags=1) at ../../gcc/cfgloopmanip.c:1613 #7 0x00000000009bc6b0 in apply_loop_flags (flags=15) at ../../gcc/loop-init.c:75 #8 0x00000000009bc7d3 in loop_optimizer_init (flags=15) at ../../gcc/loop-init.c:136 #9 0x0000000000957914 in estimate_function_body_sizes (node=0x7ffff6c47620, early=false) at ../../gcc/ipa-inline-analysis.c:2480 #10 0x000000000095948b in compute_inline_parameters (node=0x7ffff6c47620, early=false) at ../../gcc/ipa-inline-analysis.c:2907 #11 0x000000000095bd88 in inline_analyze_function (node=0x7ffff6c47620) at ../../gcc/ipa-inline-analysis.c:3994 #12 0x000000000095bed3 in inline_generate_summary () at ../../gcc/ipa-inline-analysis.c:4045 #13 0x0000000000a70b71 in execute_ipa_summary_passes (ipa_pass=0x1dcb9e0) Thanks, Martin