[llvm] [LV]Support dropping of nneg flag for zext widencast recipes. (PR #74112)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 13:54:32 PST 2023
================
@@ -971,6 +985,10 @@ class VPRecipeWithIRFlags : public VPRecipeBase {
I->setHasAllowContract(FMFs.AllowContract);
I->setHasApproxFunc(FMFs.ApproxFunc);
break;
+ case OperationType::CastOp:
+ if (isa<ZExtInst>(I))
+ I->setNonNeg(CastFlags.NonNeg);
----------------
preames wrote:
See PossiblyNonNegInst
https://github.com/llvm/llvm-project/pull/74112
More information about the llvm-commits
mailing list