[llvm] [VPlan] Introduce ExitPhi VPInstruction, use to create phi for FOR. (PR #94760)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 06:51:28 PDT 2024


================
@@ -1191,6 +1200,10 @@ class VPInstruction : public VPRecipeWithIRFlags {
     SLPStore,
     ActiveLaneMask,
     ExplicitVectorLength,
+    /// Creates a scalar phi in a leaf VPBB with a single predecessor in VPlan.
+    /// The first operand is the incoming value from the predecessor in VPlan,
+    /// the second operand is the incoming value for all other predecessors.
+    ExitPhi,
----------------
fhahn wrote:

Updated to use ResumePhi, thanks!

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


More information about the llvm-commits mailing list