[llvm] [VPlan] Introduce VPWidenIntrinsicRecipe to separate from libcall. (PR #110486)
Shih-Po Hung via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 3 03:17:39 PDT 2024
================
@@ -4392,11 +4392,17 @@ void LoopVectorizationPlanner::emitInvalidCostRemarks(
OS << "):";
if (Opcode == Instruction::Call) {
auto *WidenCall = dyn_cast<VPWidenCallRecipe>(R);
- Function *CalledFn =
- WidenCall ? WidenCall->getCalledScalarFunction()
- : cast<Function>(R->getOperand(R->getNumOperands() - 1)
- ->getLiveInIRValue());
- OS << " call to " << CalledFn->getName();
----------------
arcbbb wrote:
nit: the `WidenCall` can be moved closer to its user.
https://github.com/llvm/llvm-project/pull/110486
More information about the llvm-commits
mailing list