Landing: 7c48d6a74693

Project / Subsystem

gcc / match.pd

Date

2026-08-08

Author

Dipesh Sharma

Commit

7c48d6a74693e1c64900f6aa203539ea1ca7b370

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
match.pd
patch_id
—
commit_hash
7c48d6a74693e1c64900f6aa203539ea1ca7b370
source_type
github
headline
Fold abs(x) * abs(y) into abs(x * y)
tldr
Optimizes absolute value multiplications to improve code efficiency.
author
Dipesh Sharma
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • compiler
  • • math
discussion_id_link
—
bugzilla_pr
—
date
2026-08-08T00:00:00.000Z

This commit enhances the pattern matching capabilities of GCC by folding the expression abs(x) * abs(y) into abs(x * y). This transformation simplifies the intermediate representation, potentially leading to more efficient machine code generation.