[llvm] [VPlan] Set flags when constructing zexts using VPWidenCastRecipe (PR #164198)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 20 02:51:19 PDT 2025
================
@@ -325,6 +325,8 @@ class VPBuilder {
VPIRFlags Flags;
if (Opcode == Instruction::Trunc)
Flags = VPIRFlags::TruncFlagsTy(false, false);
+ else if (Opcode == Instruction::ZExt)
+ Flags = VPIRFlags::NonNegFlagsTy(false);
----------------
lukel97 wrote:
The issue is that it's getting initialized to the wrong flag type, OperationType::Other. We need to explicitly instantiate it with VPIRFlags::NonNegFlagsTy to get OperationType::NonNeg
https://github.com/llvm/llvm-project/pull/164198
More information about the llvm-commits
mailing list