[llvm] [LV] Add initial support for vectorizing literal struct return values (PR #109833)
David Sherwood via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 03:42:18 PST 2025
================
@@ -4588,8 +4589,7 @@ static bool willGenerateVectors(VPlan &Plan, ElementCount VF,
llvm_unreachable("unhandled recipe");
}
- auto WillWiden = [&TTI, VF](Type *ScalarTy) {
- Type *VectorTy = toVectorTy(ScalarTy, VF);
+ auto WillWiden = [&TTI, VF](Type *VectorTy) {
----------------
david-arm wrote:
The name of this lambda function is now misleading because it's asking if we will widen a type that's already widened. It seems like this is really asking if it's profitable to widen - how about something like `IsProfitableToWiden`?
https://github.com/llvm/llvm-project/pull/109833
More information about the llvm-commits
mailing list