]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/105070 - annotate bit cluster tests with locations
authorRichard Biener <rguenther@suse.de>
Mon, 28 Mar 2022 08:07:53 +0000 (10:07 +0200)
committerRichard Biener <rguenther@suse.de>
Thu, 7 Apr 2022 08:21:01 +0000 (10:21 +0200)
commit57b62cd299a0ec257141349a114e52f7233be67b
tree2c81d84bec8dcf7530f6e531585597da3aadf5e7
parentb3eb889978c6a28961511bd70f3cc177df54fde7
tree-optimization/105070 - annotate bit cluster tests with locations

The following makes sure to annotate the tests generated by
switch lowering bit-clustering with locations which otherwise
can be completely lost even at -O0.

2022-03-28  Richard Biener  <rguenther@suse.de>

PR tree-optimization/105070
* tree-switch-conversion.h
(bit_test_cluster::hoist_edge_and_branch_if_true): Add location
argument.
* tree-switch-conversion.c
(bit_test_cluster::hoist_edge_and_branch_if_true): Annotate
cond with location.
(bit_test_cluster::emit): Annotate all generated expressions
with location.

(cherry picked from commit bc86a86a4f2c057bc0e0be94dcbb8c128ae7f717)
gcc/tree-switch-conversion.c
gcc/tree-switch-conversion.h