[LV] Replace OrigPHIsToFix in native with VPlan traversal. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Mon, 13 Jun 2022 21:20:58 +0000 (22:20 +0100)
committerFlorian Hahn <flo@fhahn.com>
Mon, 13 Jun 2022 21:20:58 +0000 (22:20 +0100)
commit9129e7bb541b8f83a0acefe541b6887837178d8e
treeb8ba9365e74c0e23dc800f14feb2ed34d28b6db6
parent6d1543a16797fa07eecea7e542df5b42422fc721
[LV] Replace OrigPHIsToFix in native with VPlan traversal. (NFC)

OrigPHIsToFix is only used in the native path. Collecting phis can be
replaced by iterating over the plan. This also removes another
unnecessary use of a late getVPValue.

This also reduces the coupling between ILV and the VPlan utilities.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp