From: Richard Biener Date: Tue, 17 May 2022 15:18:06 +0000 (+0200) Subject: Do not clear bb->aux in duplicate_loop_body_to_header_edge X-Git-Tag: basepoints/gcc-14~6642 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=941efd87e22b1b88e3488b8e681d14d0d66e45ac;p=thirdparty%2Fgcc.git Do not clear bb->aux in duplicate_loop_body_to_header_edge duplicate_loop_body_to_header_edge clears bb->aux which is not wanted by a new use in loop unswitching. The clearing was introduced with r0-69110-g6580ee7781f903 and it seems accidentially so. 2022-05-17 Richard Biener * cfgloopmanip.cc (duplicate_loop_body_to_header_edge): Do not clear bb->aux of the copied blocks. --- diff --git a/gcc/cfgloopmanip.cc b/gcc/cfgloopmanip.cc index b4357c03e86..7736e3ec709 100644 --- a/gcc/cfgloopmanip.cc +++ b/gcc/cfgloopmanip.cc @@ -1351,7 +1351,6 @@ duplicate_loop_body_to_header_edge (class loop *loop, edge e, unsigned j; bb = bbs[i]; - bb->aux = 0; auto_vec dom_bbs = get_dominated_by (CDI_DOMINATORS, bb); FOR_EACH_VEC_ELT (dom_bbs, j, dominated)