llvm-project
b8741cc1 - [VPlan] Relax assertion retrieving a scalar from VPTransformState::get.

Commit
1 year ago
[VPlan] Relax assertion retrieving a scalar from VPTransformState::get. The current assertion VPTransformState::get when retrieving a single scalar only does not account for cases where a def has multiple users, some demanding all scalar lanes, some demanding only a single scalar. For an example, see the modified test case. Relax the assertion by also allowing requesting scalar lanes only when the Def doesn't have only its first lane used. Fixes https://github.com/llvm/llvm-project/issues/88849.
Author
Committer
Parents
Loading