[llvm] [VPlan] Impl VPlan-based pattern match for ExtendedRed and MulAccRed (PR #113903)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 22 02:13:30 PDT 2025


================
@@ -811,6 +823,8 @@ class VPRecipeWithIRFlags : public VPSingleDefRecipe {
 
   FastMathFlags getFastMathFlags() const;
 
+  bool isNonNeg() const { return NonNegFlags.NonNeg; }
----------------
fhahn wrote:

Can we assert that OpType == OperationType::NonNegOp here, like for other accessors? otherwise we would access a non-active union element.

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


More information about the llvm-commits mailing list