]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Do not clear bb->aux in duplicate_loop_body_to_header_edge
authorRichard Biener <rguenther@suse.de>
Tue, 17 May 2022 15:18:06 +0000 (17:18 +0200)
committerRichard Biener <rguenther@suse.de>
Tue, 17 May 2022 15:53:46 +0000 (17:53 +0200)
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  <rguenther@suse.de>

* cfgloopmanip.cc (duplicate_loop_body_to_header_edge): Do
not clear bb->aux of the copied blocks.

gcc/cfgloopmanip.cc

index b4357c03e86bd4e8b722b1219c06c0394b30259c..7736e3ec7090d3ed2b39bcff4ae5bb28e1558fc9 100644 (file)
@@ -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<basic_block> dom_bbs = get_dominated_by (CDI_DOMINATORS, bb);
       FOR_EACH_VEC_ELT (dom_bbs, j, dominated)