[VectorCombine] Limit scalarization known non-poison indices.
authorFlorian Hahn <flo@fhahn.com>
Thu, 5 Aug 2021 13:50:37 +0000 (14:50 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 5 Aug 2021 14:36:31 +0000 (15:36 +0100)
commit38b098be6605494cc7308ea9b08f920c4c3fe4ce
treece5228511d05adf512574de1298d290aef532e9c
parent06206a8cd1b1538e265f79e245c34180c640e334
[VectorCombine] Limit scalarization known non-poison indices.

We can only trust the range of the index if it is guaranteed
non-poison.

Fixes PR50949.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D107364
llvm/lib/Transforms/Vectorize/VectorCombine.cpp
llvm/test/Transforms/VectorCombine/load-insert-store.ll