[LV] Hoist mapping of IR operands to VPValues (NFC).
authorFlorian Hahn <flo@fhahn.com>
Fri, 2 Apr 2021 12:28:44 +0000 (13:28 +0100)
committerFlorian Hahn <flo@fhahn.com>
Fri, 2 Apr 2021 16:57:20 +0000 (17:57 +0100)
commit8867fc69f03d0438b0e8beb1dd89c04238f631a1
tree09ecf9a76d646f64a51f6a0710106d5fe8b08402
parent2c4548e18e09686659bddad617b8c42a47714540
[LV] Hoist mapping of IR operands to VPValues (NFC).

This patch moves mapping of IR operands to VPValues out of
tryToCreateWidenRecipe. This allows using existing VPValue operands when
widening recipes directly, which will be introduced in future patches.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h