[llvm] [VPlan] Verify dominance for incoming values of phi-like recipes. (PR #124838)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 29 12:48:51 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());
+}
----------------
fhahn wrote:
Adde a newline, thanks
https://github.com/llvm/llvm-project/pull/124838
More information about the llvm-commits
mailing list