[VPlan] Move widening check for non-memory/non-calls to function (NFC).
authorFlorian Hahn <flo@fhahn.com>
Wed, 15 Apr 2020 10:41:13 +0000 (11:41 +0100)
committerFlorian Hahn <flo@fhahn.com>
Wed, 15 Apr 2020 10:48:37 +0000 (11:48 +0100)
commit5b4b3e0b6e930cf993b9aaadbe709bfb96573598
tree6bbad982cb265a1c4c17dcaa9834e562cc2b434d
parentff18a6acea318f739ced2a1d35a39cb874d2be91
[VPlan] Move widening check for non-memory/non-calls to function (NFC).

After introducing VPWidenSelectRecipe, the duplicated logic can be
shared.

Reviewers: gilr, rengolin, Ayal, hsaito

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D77973
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPRecipeBuilder.h