Landing: c42241d2de04
Project / Subsystem
gcc / cselim
Date
2026-08-02
Author
Andrea Pinski
Commit
c42241d2de04ce75550649ed3dca7ff1549c3343
Source
github
Perf win
No
Breaking
No
All attributes
- project
- gcc
- subsystem
- cselim
- patch_id
- —
- commit_hash
- c42241d2de04ce75550649ed3dca7ff1549c3343
- source_type
- github
- headline
- cselim: Fix cond_store_replacement_limited for clobbers
- tldr
- Fixes `cond_store_replacement_limited` to correctly distinguish clobbers from stores, preventing incorrect phi argument usage.
- author
- Andrea Pinski
- outcome
- committed
- performance_win
- false
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cselim
- • optimization
- • compiler bug
- • SSA
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-08-02T00:00:00.000Z
The cond_store_replacement_limited function incorrectly treated clobber operations as stores. This led to erroneous usage of {CLOBBER(eos)} as a phi argument, causing incorrect code generation. This change corrects the function to properly identify and reject clobbers, ensuring they are not mistaken for stores.