[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


================
@@ -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
----------------
bogner wrote:

This is a little surprising but it seems fine. Do we also have tests where the GEP was a constant expression in the first place to make sure that that's still doing the right thing?

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


More information about the llvm-commits mailing list