SIGN IN SIGN UP

[SLP]Fix direction of the perfect diamond match for gather nodes

Poison lanes of the matched entry wildcard-matched real scalars of the
gather; the mask restore then failed to find them. Match the entry
against the expanded vector of the gather instead.

Fixes #219788

Reviewers: 

Pull Request: https://github.com/llvm/llvm-project/pull/219798
A
Alexey Bataev committed
b5e62a28d09e539efb31b44fbc07b31a1913304f
Parent: e828491
Committed by GitHub <noreply@github.com> on 8/30/2026, 12:47:01 PM