Landing: 0d8cda8fdbbf

Project / Subsystem

gcc / match

Date

2026-08-21

Author

Andrea Pinski

Commit

0d8cda8fdbbf821f8caf8b3c59db6be43d552c5b

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
match
patch_id
—
commit_hash
0d8cda8fdbbf821f8caf8b3c59db6be43d552c5b
source_type
github
headline
match: Convert for mul_carry_low_sum and mul_carry_cross_sum is not optional
tldr
Removed optional cast in match patterns for mul_carry_low_sum and mul_carry_cross_sum, reducing generated code.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • code-generation
discussion_id_link
—
bugzilla_pr
—
date
2026-08-21T00:00:00.000Z

This commit removes an optional cast (?) from the mul_carry_low_sum and mul_carry_cross_sum match patterns in GCC. The patterns are used where a conversion is applied to a comparison, and the cast is only truly optional for 1-bit integer types, which are not expected by these patterns. This change reduces the amount of generated code from the genmatch tool.