[llvm] [DirectX] Allow vector Allocas to be transformed into arrays (PR #145972)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 27 08:17:47 PDT 2025
================
@@ -117,19 +117,23 @@ DataScalarizerVisitor::lookupReplacementGlobal(Value *CurrOperand) {
return nullptr; // Not found
}
-static bool isArrayOfVectors(Type *T) {
+// Helper function to check if a type is a vector or an array of vectors
+static bool isVectorOrArrayOfVectors(Type *T) {
+ if (isa<VectorType>(T))
+ return true;
----------------
farzonl wrote:
After talking with the team the `shuffle.ll` test is not valid DXIL. The test is just to make sure the bitcodewriter can handle shuffle vector instructions potentially for future use. This means no code change is necessary.
https://github.com/llvm/llvm-project/pull/145972
More information about the llvm-commits
mailing list