[llvm] [DirectX] Scalarize Allocas as part of data scalarization (PR #140165)

Justin Bogner via llvm-commits llvm-commits at lists.llvm.org
Thu May 22 13:48:22 PDT 2025


================
@@ -65,11 +67,17 @@ class DataScalarizerVisitor : public InstVisitor<DataScalarizerVisitor, bool> {
 private:
   GlobalVariable *lookupReplacementGlobal(Value *CurrOperand);
   DenseMap<GlobalVariable *, GlobalVariable *> GlobalMap;
+  static bool isArrayOfVectors(Type *T);
----------------
bogner wrote:

Does it need to be a member function of `DataScalarizerVisitor` at all? I think it'd be clearer to just make this a static freestanding function.

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


More information about the llvm-commits mailing list