[VPlan] Add getVPSingleValue helper.
authorFlorian Hahn <flo@fhahn.com>
Thu, 29 Apr 2021 12:17:37 +0000 (13:17 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 29 Apr 2021 12:37:38 +0000 (13:37 +0100)
commita0e1313c23296da1cf592f972ed97e5dea10b8ea
tree5d5101b2ba51fe1d1af492e4c5d4ec472fa46c3e
parent79f7d3b7b123faa80daf265277b32ac77998190f
[VPlan] Add getVPSingleValue helper.

As suggested in D99294, this adds a getVPSingleValue helper to use for
recipes that are guaranteed to define a single value. This replaces uses
of getVPValue() which used to default to I = 0.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanValue.h
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp