[VPlan] Use one VPWidenRecipe per original IR instruction. (NFC).
authorFlorian Hahn <flo@fhahn.com>
Sun, 29 Mar 2020 10:35:17 +0000 (11:35 +0100)
committerFlorian Hahn <flo@fhahn.com>
Sun, 29 Mar 2020 12:47:28 +0000 (13:47 +0100)
commit49d00824bbbb8945b92c0f592c6951a881a6242f
treed37f7b4d48ff246fe816a87c377b3947c3b84ba3
parent6ba63510720f5bd6033a3eeffd51f8d7e0e90432
[VPlan] Use one VPWidenRecipe per original IR instruction. (NFC).

This patch changes VPWidenRecipe to only store a single original IR
instruction. This is the first required step towards modeling it's
operands as VPValues and also towards breaking it up into a
VPInstruction.

Discussed as part of D74695.

Reviewers: Ayal, gilr, rengolin

Reviewed By: gilr

Differential Revision: https://reviews.llvm.org/D76988
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp