[llvm] [LV] Adjust exit recipe detection to run on early vplan (PR #183318)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 04:53:00 PDT 2026
================
@@ -546,24 +551,32 @@ vputils::getRecipesForUncountableExit(VPlan &Plan,
if (match(V, m_ICmp(m_VPValue(Op1), m_VPValue(Op2)))) {
Worklist.push_back(Op1);
Worklist.push_back(Op2);
- Recipes.push_back(V->getDefiningRecipe());
- } else if (auto *Load = dyn_cast<VPWidenLoadRecipe>(V)) {
- // Reject masked loads for the time being; they make the exit condition
- // more complex.
- if (Load->isMasked())
+ Recipes.push_back(cast<VPInstruction>(V->getDefiningRecipe()));
+ } else if (match(V, m_VPInstruction<Instruction::Load>(m_VPValue(Op1)))) {
+ VPRecipeBase *GepR = Op1->getDefiningRecipe();
----------------
fhahn wrote:
Prevosuly we recjected masked loads, but now the check is gone; I think the only thing we could check is that the loads are in the header block at this point? Or should the user be required to deal with this somehow?
https://github.com/llvm/llvm-project/pull/183318
More information about the llvm-commits
mailing list