Landing: 090ff9c73c79

Project / Subsystem

gcc / middle-end

Date

2026-09-26

Author

Tamar Christina

Commit

090ff9c73c79ab83eea66a010887a0ca8002ec6e

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
middle-end
patch_id
—
commit_hash
090ff9c73c79ab83eea66a010887a0ca8002ec6e
source_type
github
headline
Middle-end: Fix self-test failures for vector types
tldr
Corrects a self-test failure in the middle-end by using the correct vector element count for VLAs.
author
Tamar Christina
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • middle-end
  • • vectorization
  • • self-test
  • • aarch64
  • • risc-v
discussion_id_link
—
bugzilla_pr
—
date
2026-09-26T00:00:00.000Z

Recent self-tests for vector unroll folding in GCC’s middle-end were failing due to incorrect handling of vector types. The issue stemmed from using in_nelts instead of min_out_nelts when encoding vector types, which led to the wrong encoding for VLAs (Variable Length Arrays). This commit updates the test to use min_out_nelts, resolving the failure and ensuring correct handling for various architectures including ARM and RISC-V.