Landing: 1dc229c7368d

Project / Subsystem

gcc / gimple-fold

Date

2026-08-27

Author

Jakub Jelinek

Commit

1dc229c7368d4f8b43356968f624e0d895961868

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
gimple-fold
patch_id
—
commit_hash
1dc229c7368d4f8b43356968f624e0d895961868
source_type
github
headline
GIMPLE-fold: Fix vector length/store folding with bias.
tldr
Corrects folding of vector length load/store operations that use a target-specific bias.
author
Jakub Jelinek
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • optimization
  • • gimple
  • • vector
  • • backend
discussion_id_link
—
bugzilla_pr
—
date
2026-08-27T00:00:00.000Z

This commit corrects the GIMPLE optimization pass for folding vector length load and store operations when a target-specific bias is involved. The issue arose from incorrect handling of the bias, leading to miscalculations that could cause these operations to be incorrectly folded away. The fix adjusts the calculation to correctly incorporate the bias, ensuring accurate behavior, especially on targets like s390.