https://gcc.gnu.org/g:ae723691c3ec65d1047c42f85d3b26599efa06b5
commit r17-5423-gae723691c3ec65d1047c42f85d3b26599efa06b5 Author: Benjamin Wu <[email protected]> Date: Tue Oct 20 22:11:09 2026 -0600 [PATCH] store-merging: remove unneeded cast to int Tested x86_64-pc-linux-gnu. -- <8 -- ceil_log2 already returns int, so remove cast to int. gcc/ChangeLog: * gimple-ssa-store-merging.cc (find_bswap_or_nop): Remove unneeded cast to int. Diff: --- gcc/gimple-ssa-store-merging.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/gimple-ssa-store-merging.cc b/gcc/gimple-ssa-store-merging.cc index a05d8f7d8693..d205757e7a50 100644 --- a/gcc/gimple-ssa-store-merging.cc +++ b/gcc/gimple-ssa-store-merging.cc @@ -1087,7 +1087,7 @@ find_bswap_or_nop (gimple *stmt, struct symbolic_number *n, bool *bswap, cover signed -> unsigned conversions of the src operand as can be seen in libgcc, and for initial shift/and operation of the src operand. */ int limit = tree_to_uhwi (type_size); - limit += 2 * (1 + (int) ceil_log2 ((unsigned HOST_WIDE_INT) limit)); + limit += 2 * (1 + ceil_log2 ((unsigned HOST_WIDE_INT) limit)); gimple *ins_stmt = find_bswap_or_nop_2 (stmt, n, limit); if (!ins_stmt) return NULL;
