Landing: 4f6eeefe8d81

Project / Subsystem

gcc / rs6000

Date

2026-09-25

Author

Surya Kumari Jangala

Commit

4f6eeefe8d8146af48ae6526e398d3b46640822a

Source

github

Perf win

No

Breaking

No

All attributes

project
gcc
subsystem
rs6000
patch_id
—
commit_hash
4f6eeefe8d8146af48ae6526e398d3b46640822a
source_type
github
headline
rs6000: Fix lane extraction for vec_extract
tldr
Corrects lane extraction in `vec_extract` by ensuring special handling only for relevant swappable instructions.
author
Surya Kumari Jangala
outcome
committed
performance_win
false
breaking_change
false
series_id
—
series_parts
[]
tags
  • • rs6000
  • • optimization
  • • vector instructions
  • • rtl
discussion_id_link
—
bugzilla_pr
—
date
2026-09-25T00:00:00.000Z

This commit refactors the rs6000_analyze_swaps function to accurately handle vec_extract operations. It ensures that special handling for swappable instructions is applied only when webs contain permuting load/store instructions, preventing unnecessary adjustments to extracted lanes and improving code generation for non-permuting loads/stores.