[VPlan] Handle invariant GEPs in isUniformAfterVectorization.
authorFlorian Hahn <flo@fhahn.com>
Tue, 30 May 2023 14:53:26 +0000 (15:53 +0100)
committerFlorian Hahn <flo@fhahn.com>
Tue, 30 May 2023 14:53:26 +0000 (15:53 +0100)
commit1a28b9bce75d184a74012fdf9f6e0fcbb7fd0e1c
tree8f6ebb426a115e9e4ae57e3098d95b12827d0b8d
parent8a6dadaad096fe6ded1e130487bd104b99fb008d
[VPlan] Handle invariant GEPs in isUniformAfterVectorization.

This fixes a crash caused by legal treating a scalable GEP as invariant,
but isUniformAfterVectorization does not handle GEPs.

Partially fixes https://github.com/llvm/llvm-project/issues/60831.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D144434
llvm/lib/Transforms/Vectorize/VPlan.h