[llvm] [VPlan] Fix OpType-mismatch in getFlagsFromIndDesc (PR #168560)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 18 08:46:45 PST 2025


================
@@ -90,7 +90,7 @@ inline VPIRFlags getFlagsFromIndDesc(const InductionDescriptor &ID) {
           ID.getInductionBinOp()))
     return VPIRFlags::WrapFlagsTy(OBO->hasNoUnsignedWrap(),
                                   OBO->hasNoSignedWrap());
-  return {};
+  return VPIRFlags::WrapFlagsTy(false, false);
----------------
artagnon wrote:

To be clear, we don't have wrap flags in this case -- we're simply setting the OpType, so that it matches with another case where we do have an induction binop and get the nowrap flags.

https://github.com/llvm/llvm-project/pull/168560


More information about the llvm-commits mailing list