[VPlan] Replace uses with new value in VPInstructionsToVPRecipe (NFC).
authorFlorian Hahn <flo@fhahn.com>
Mon, 25 Jan 2021 19:34:59 +0000 (19:34 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 25 Jan 2021 19:38:08 +0000 (19:38 +0000)
commit76afbf60ed7fb48233c9af9f74f2e8399fd38214
tree8b0ea135bfbca3795e2bb0b410f961f369822ab4
parent4bb6244871c6914517a21f56830b3765495792f2
[VPlan] Replace uses with new value in VPInstructionsToVPRecipe (NFC).

Now that VPRecipeBase inherits from VPDef, we can always use the new
VPValue for replacement, if the recipe defines one. Given the recipes
that are supported at the moment, all new recipes must have either 0 or
1 defined values.
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp