[llvm] [VPlan] First step towards VPlan cost modeling. (PR #67934)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 10 07:43:34 PDT 2024
================
@@ -913,9 +913,14 @@ static void simplifyRecipe(VPRecipeBase &R, VPTypeAnalysis &TypeInfo) {
unsigned ExtOpcode = match(R.getOperand(0), m_SExt(m_VPValue()))
? Instruction::SExt
: Instruction::ZExt;
- auto *VPC =
- new VPWidenCastRecipe(Instruction::CastOps(ExtOpcode), A, TruncTy);
- VPC->insertBefore(&R);
+ VPValue *VPC;
+ if (auto *UV = R.getOperand(0)->getUnderlyingValue())
----------------
fhahn wrote:
Yes, could adjust to this effect.
https://github.com/llvm/llvm-project/pull/67934
More information about the llvm-commits
mailing list