Landing: 16e53b537917

Project / Subsystem

gcc / rs6000

Date

2026-03-26

Author

Vijay Shankar

Commit

16e53b53791725ead6af8071faaa2960ee9a3da5

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
rs6000
patch_id
—
commit_hash
16e53b53791725ead6af8071faaa2960ee9a3da5
source_type
github
headline
rs6000: Use single vcmpnezb for vec_first_mismatch_or_eos_index
tldr
Optimizes vec_first_mismatch_or_eos_index intrinsic on rs6000 by using a single vcmpnezb instruction.
author
Vijay Shankar
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • rs6000
  • • powerpc
  • • optimization
  • • vector
discussion_id_link
—
bugzilla_pr
—
date
2026-03-26T00:00:00.000Z

This commit optimizes the vec_first_mismatch_or_eos_index intrinsic on the rs6000 architecture by replacing a multi-step comparison sequence with a single vcmpnezb instruction. This eliminates redundant vector compare instructions and masking logic, resulting in more efficient and shorter generated code.