[llvm] [VPlan] Use VPInstruction for uniform binops. (PR #141429)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 04:27:23 PDT 2025
================
@@ -1047,8 +1060,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);
+ VPSingleDefRecipe *VPC;
+ if (vputils::isSingleScalar(R.getVPSingleValue()))
----------------
ayalz wrote:
```suggestion
if (vputils::isSingleScalar(Trunc))
```
https://github.com/llvm/llvm-project/pull/141429
More information about the llvm-commits
mailing list