[llvm] [VPlan] Remove loop region in optimizeForVFAndUF. (PR #108378)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 1 15:53:28 PST 2025
================
@@ -1427,8 +1436,10 @@ void VPlanIngredient::print(raw_ostream &O) const {
#endif
bool VPValue::isDefinedOutsideLoopRegions() const {
+
return !hasDefiningRecipe() ||
- !getDefiningRecipe()->getParent()->getEnclosingLoopRegion();
+ (!getDefiningRecipe()->getParent()->getEnclosingLoopRegion() &&
+ getDefiningRecipe()->getParent()->getPlan()->getVectorLoopRegion());
----------------
ayalz wrote:
Better to implement `isDefinedInsideLoopRegion()` instead and take its negation?
https://github.com/llvm/llvm-project/pull/108378
More information about the llvm-commits
mailing list