[VPlan] Separate ctors for VPWidenIntOrFpInduction. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Sun, 5 Dec 2021 12:14:58 +0000 (12:14 +0000)
committerFlorian Hahn <flo@fhahn.com>
Sun, 5 Dec 2021 12:15:18 +0000 (12:15 +0000)
commit7c3c352d82131b960726560869945201410f9eb7
tree06178cba7c762493f5aa1d4385e24a371163cabc
parent75b622a7959479ccdb758ebe0973061b7b4fcacd
[VPlan] Separate ctors for VPWidenIntOrFpInduction. (NFC)

VPWidenIntOrFpInductionRecipes can either be constructed with a PHI and
an optional cast or a PHI and a trunc instruction. Reflect this in 2
separate constructors. This also simplifies a follow-up change.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp