[llvm] [SROA]: Only defer trying partial sized ptr or ptr vector types (PR #82279)

Jeffrey Byrnes via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 27 11:37:59 PST 2024


================
@@ -2304,6 +2305,34 @@ static VectorType *isVectorPromotionViable(Partition &P, const DataLayout &DL) {
       }
     }
   };
+  auto createAndCheckVectorTypesForPromotion =
----------------
jrbyrnes wrote:

Thanks for comment.

I originally had it as a lambda because it calls the lambda CheckCandidateType which captures the flags / heuristics (e.g. HaveCommonVecPtrTy)  (among other things).

The helper method is probably fine, but I find the scope behavior a little weird.

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


More information about the llvm-commits mailing list