[VPlan] Use VPValue def for VPWidenCall.
authorFlorian Hahn <flo@fhahn.com>
Mon, 9 Nov 2020 13:29:41 +0000 (13:29 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 9 Nov 2020 13:29:41 +0000 (13:29 +0000)
commitfec64de261ff7ca2f56707d3d5e12e917b929c67
tree35c0c8365b7993a5487c11f6a00cdee988e2f72a
parentf0922efddef49b7f9057f5c3d5b6b8968111aadf
[VPlan] Use VPValue def for VPWidenCall.

This patch turns VPWidenCall into a VPValue and uses it
during VPlan construction and codegeneration instead of the plain IR
reference where possible.

Reviewed By: dmgreen

Differential Revision: https://reviews.llvm.org/D84681
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanValue.h
llvm/test/Transforms/LoopVectorize/vplan-printing.ll [new file with mode: 0644]