[LV] Replace some uses of VectorLoopValueMap with VPTransformState (NFC)
authorFlorian Hahn <flo@fhahn.com>
Sun, 7 Feb 2021 17:53:47 +0000 (17:53 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sun, 7 Feb 2021 18:28:21 +0000 (18:28 +0000)
commit3bb6dc0b268baa05742ada7f932937934808bed5
treebccc98951d4c1453df1a9cd081e019b8855b03ee
parenta14a59f2f2d86d5be383eecaad59fe0feb9f5212
[LV] Replace some uses of VectorLoopValueMap with VPTransformState (NFC)

This patch updates some places where VectorLoopValueMap is accessed
directly to instead go through VPTransformState.

As we move towards managing created values exclusively in VPTransformState,
this ensures the use always can fetch the correct value.

This is in preparation for D92285, which switches to managing scalarized
values through VPValues.

In the future, the various fix* functions should be moved directly into
the VPlan codegen stage.

Reviewed By: gilr

Differential Revision: https://reviews.llvm.org/D95757
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h