[llvm] [VPlan] Verify dominance for incoming values of phi-like recipes. (PR #124838)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 29 01:31:45 PST 2025


================
@@ -175,6 +175,11 @@ bool VPlanVerifier::verifyEVLRecipe(const VPInstruction &EVL) const {
   });
 }
 
+/// Return true if \p R is a VPIRInstruction wrapping a phi.
+static bool isVPIRInstructionPhi(const VPRecipeBase &R) {
+  auto *VPIRI = dyn_cast<VPIRInstruction>(&R);
+  return VPIRI && isa<PHINode>(VPIRI->getInstruction());
+}
----------------
david-arm wrote:

nit: Add new line after function?

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


More information about the llvm-commits mailing list