[llvm] [LV]Support dropping of nneg flag for zext widencast recipes. (PR #74112)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 14:02:22 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);
----------------
fhahn wrote:
Thanks, NonNegFlags/NonNegOp would probably be best
https://github.com/llvm/llvm-project/pull/74112
More information about the llvm-commits
mailing list