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>
Mon, 28 Mar 2022 09:34:06 +0000 (11:34 +0200)
commitbc86a86a4f2c057bc0e0be94dcbb8c128ae7f717
tree6531507e078f065abc2f8166147b24f8988c4645
parent9f37d31324f89d0b7b2abac988a976d121ae29c6
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.cc
(bit_test_cluster::hoist_edge_and_branch_if_true): Annotate
cond with location.
(bit_test_cluster::emit): Annotate all generated expressions
with location.
gcc/tree-switch-conversion.cc
gcc/tree-switch-conversion.h