]> git.ipfire.org Git - thirdparty/gcc.git/commit
Refactor CTZ detection in forwprop
authorRichard Biener <rguenther@suse.de>
Wed, 28 May 2025 12:13:00 +0000 (14:13 +0200)
committerRichard Biener <rguenther@suse.de>
Fri, 6 Jun 2025 07:16:01 +0000 (09:16 +0200)
commit63a8128218cc421b4294f9b8b139197a985ce375
tree5f41a27a60c81b848888353044ddb40f5fce6f6a
parent34701fe95d3f3b4e9f8056ce32e7f699f8441e7f
Refactor CTZ detection in forwprop

The following refactors the CTZ detection code to be more easily
extensible to also handle CLZ.

* tree-ssa-forwprop.cc (optimize_count_trailing_zeroes):
Inline into ...
(simplify_count_trailing_zeroes): ... this function.
Split out ...
(check_ctz_table): ... a wrapper for CONSTRUCTOR vs. STRING_CST
handling.
gcc/tree-ssa-forwprop.cc