[llvm] [VPlan] Add new VPInstruction ocpode for header mask. (PR #89603)

via llvm-commits llvm-commits at lists.llvm.org
Mon May 6 03:45:45 PDT 2024


================
@@ -552,6 +515,16 @@ createScalarIVSteps(VPlan &Plan, InductionDescriptor::InductionKind Kind,
   return Steps;
 }
 
+/// Return the header mask recipe of the VPlan, if there is one.
+static VPInstruction *getHeaderMask(VPlan &Plan) {
----------------
ayalz wrote:

Having loop region provide getHeaderMask() should save this search for a singleton VPValue.

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


More information about the llvm-commits mailing list