Landing: 07df1f36a064

Project / Subsystem

gcc / chrec

Date

2026-04-21

Author

Andrew Pinski

Commit

07df1f36a06469b61f4b4d64d52d9b2a0dac618c

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
chrec
patch_id
commit_hash
07df1f36a06469b61f4b4d64d52d9b2a0dac618c
source_type
github
headline
Chrec: Move rtype Definition Closer to Its Use
tldr
The rtype variable in tree-chrec.cc is now defined only within the scope where it's actually used, improving code clarity.
author
Andrew Pinski
outcome
committed
performance_win
false
breaking_change
false
series_id
series_parts
[]
tags
  • chrec
  • code organization
  • refactor
discussion_id_link
bugzilla_pr
date
2026-04-21T00:00:00.000Z

This commit moves the definition of the rtype variable within the chrec_fold_plus_poly_poly function in tree-chrec.cc to the specific scope where it is used (only for POINTER_PLUS_EXPR). This improves code readability and reduces potential for misuse of the variable in other parts of the function.