[llvm] [SROA] Only try additional vector type candidates when needed (PR #77678)

Jeffrey Byrnes via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 12 09:12:28 PST 2024


================
@@ -2216,86 +2317,9 @@ static VectorType *isVectorPromotionViable(Partition &P, const DataLayout &DL) {
     }
   }
 
-  // If we didn't find a vector type, nothing to do here.
-  if (CandidateTys.empty())
----------------
jrbyrnes wrote:

Ah yes, thanks for the idea!

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


More information about the llvm-commits mailing list