Landing: 836cb4ed48c9

Project / Subsystem

gcc / gcc/tree-optimization

Date

2026-08-12

Author

Andrew MacLeod

Commit

836cb4ed48c987a4a9027cb14e6b6e1edeebcaf3

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gcc/tree-optimization
patch_id
—
commit_hash
836cb4ed48c987a4a9027cb14e6b6e1edeebcaf3
source_type
github
headline
Set current query in fold_using_range
tldr
Ensures correct range context is maintained during folding operations.
author
Andrew MacLeod
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • range-analysis
discussion_id_link
—
bugzilla_pr
—
date
2026-08-12T00:00:00.000Z

This commit updates fold_using_range to set the current query for range analysis. This ensures that the folding operation correctly uses the specified range context, preventing potential inaccuracies. A new test case is added to verify this fix.