[llvm] [VPlan] Extend licm to hoist replicate loads (PR #179506)

Andrei Elovikov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 17 09:59:33 PDT 2026


================
@@ -306,6 +306,18 @@ static bool cannotHoistOrSinkRecipe(const VPRecipeBase &R) {
   return RepR && RepR->getOpcode() == Instruction::Alloca;
 }
 
+/// Return true if we do not know how to (mechanically) hoist or sink a
+/// non-memory or memory recipe \p R out of a loop region.
----------------
eas wrote:

TBH, this comment doesn't help much, but I have no idea how to describe this method better.

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


More information about the llvm-commits mailing list