[VPlan] Add field to track if intrinsic should be used for call. (NFC)
authorFlorian Hahn <flo@fhahn.com>
Thu, 1 Sep 2022 12:14:40 +0000 (13:14 +0100)
committerFlorian Hahn <flo@fhahn.com>
Thu, 1 Sep 2022 12:14:40 +0000 (13:14 +0100)
commitfc444ddc77209dd3c0eb2df924c9004ce1533092
treeabe737dd64db9d131aa0c78b5e75d08819852f87
parent153709c0934dd615cda3c9e496bd04beae8da595
[VPlan] Add field to track if intrinsic should be used for call. (NFC)

This patch moves the cost-based decision whether to use an intrinsic or
library call to the point where the recipe is created. This untangles
code-gen from the cost model and also avoids doing some extra work as
the information is already computed at construction.

Reviewed By: Ayal

Differential Revision: https://reviews.llvm.org/D132585
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
llvm/lib/Transforms/Vectorize/VPlanTransforms.h
llvm/test/Transforms/LoopVectorize/AArch64/widen-call-with-intrinsic-or-libfunc.ll
llvm/test/Transforms/LoopVectorize/vplan-dot-printing.ll
llvm/unittests/Transforms/Vectorize/VPlanHCFGTest.cpp
llvm/unittests/Transforms/Vectorize/VPlanTest.cpp