[llvm] [DirectX] Scalarize `extractelement` and `insertelement` with dynamic indices (PR #141676)
Deric C. via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 6 15:59:16 PDT 2025
================
@@ -79,6 +79,16 @@ class DataScalarizerVisitor : public InstVisitor<DataScalarizerVisitor, bool> {
friend bool findAndReplaceVectors(llvm::Module &M);
private:
+ typedef std::pair<AllocaInst *, SmallVector<Value *, 4>> AllocaAndGEPs;
----------------
Icohedron wrote:
By the time HLSL has vectors larger than 4 is also when DXIL has native support for dynamic vector indexing, thus this transformation would not be used.
https://github.com/llvm/llvm-project/pull/141676
More information about the llvm-commits
mailing list