Landing: e4d36a3fc154

Project / Subsystem

gcc / lim/cselim

Date

2026-09-01

Author

Andrea Pinski

Commit

e4d36a3fc154fe500bdfd7835ec9fe4d5e41fb42

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
lim/cselim
patch_id
—
commit_hash
e4d36a3fc154fe500bdfd7835ec9fe4d5e41fb42
source_type
github
headline
lim/cselim: Use lhs_could_trap_p directly
tldr
Simplifies code in the loop and conditional select elimination passes by directly using the specialized trapping check.
author
Andrea Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • compiler internals
discussion_id_link
—
bugzilla_pr
—
date
2026-09-01T00:00:00.000Z

The loop and conditional select elimination passes in GCC now directly use lhs_could_trap_p instead of a more general trapping check followed by additional tests. This simplifies the code and ensures consistent handling of potentially trapping left-hand side expressions, improving maintainability and correctness.