[VPlan] Remove PredInst2Recipe, use VP operands instead. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Tue, 16 Mar 2021 11:42:08 +0000 (11:42 +0000)
committerFlorian Hahn <flo@fhahn.com>
Tue, 16 Mar 2021 17:40:35 +0000 (17:40 +0000)
commitf586de8459ce897faf532fdd49fd4aa81747589e
tree6be2de80c3d7552fcd6ad46104af7182bdbdb4b0
parenta80a33e8b55393c060e51486cfd8085b380eb36d
[VPlan] Remove PredInst2Recipe, use VP operands instead. (NFC)

Instead of maintaining a separate map from predicated instructions to
recipes, we can instead directly look at the VP operands. If the operand
comes from a predicated instruction, the operand will be a
VPPredInstPHIRecipe with a VPReplicateRecipe as its operand.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
llvm/lib/Transforms/Vectorize/VPlan.h