Landing: a9883211f889

Project / Subsystem

gcc / gcc

Date

2026-05-12

Author

Richard Biener

Commit

a9883211f8891a3cb5966cbe2fbec35e25631d83

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
gcc
patch_id
commit_hash
a9883211f8891a3cb5966cbe2fbec35e25631d83
source_type
github
headline
Avoid setting ls_type when unused
tldr
The compiler now avoids setting `ls_type` unnecessarily in vectorization, improving efficiency.
author
Richard Biener
outcome
committed
performance_win
true
breaking_change
false
series_id
series_parts
[]
tags
  • optimization
  • vectorization
discussion_id_link
bugzilla_pr
date
2026-05-12T00:00:00.000Z

This commit optimizes vectorization by avoiding setting the ls_type on loads/stores when the type isn’t actually used. The change modifies get_load_store_type in tree-vect-stmts.cc to only set ls_type when vect_use_grouped_gather succeeds.