[LV] Use usesScalars in widenPHIInstruction.
authorFlorian Hahn <flo@fhahn.com>
Thu, 17 Mar 2022 13:16:32 +0000 (13:16 +0000)
committerFlorian Hahn <flo@fhahn.com>
Thu, 17 Mar 2022 13:16:32 +0000 (13:16 +0000)
commit151c14435037072af795f2bec7626e3951d30965
treefd20c9fc5c4933bccfb3025a99eb781448c3b613
parente525245fba629632db4d026f2cac29f032f02320
[LV] Use usesScalars in widenPHIInstruction.

This uses the existing VPlan helpers to check whether there are scalar
uses of a phi recipe. It remove one of the few remaining dependencies on
the cost model from VPlan code generation.

Depends on D121612.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D121613
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/AArch64/sve-widen-gep.ll