[llvm] [DirectX] Scalarize Allocas as part of data scalarization (PR #140165)
Farzon Lotfi via llvm-commits
llvm-commits at lists.llvm.org
Tue May 27 10:23:55 PDT 2025
================
@@ -8,12 +8,18 @@
define internal void @main() #1 {
; CHECK-LABEL: define internal void @main() {
; CHECK-NEXT: [[ENTRY:.*:]]
-; CHECK-NEXT: [[DOTI0:%.*]] = load float, ptr getelementptr inbounds ([24 x float], ptr @StaticArr.scalarized.1dim, i32 1), align 16
----------------
farzonl wrote:
We do have a few test case and they are still passing:
https://github.com/llvm/llvm-project/blob/66a2d4b1e7b54a906990d8cee6174c228604830b/llvm/test/CodeGen/DirectX/scalar-load.ll#L22-L28
https://github.com/llvm/llvm-project/blob/66a2d4b1e7b54a906990d8cee6174c228604830b/llvm/test/CodeGen/DirectX/scalar-load.ll#L53-L58
https://github.com/llvm/llvm-project/pull/140165
More information about the llvm-commits
mailing list