[llvm] [llvm][ARM]Add widen global arrays pass (PR #107120)

Nashe Mncube via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 04:12:18 PDT 2024


nasherm wrote:

With the now updated pass I get the following output on the below (truncated) IR

**IR**
```
@.str = private unnamed_addr constant [10 x i8] c"123456789\00", align 1

; Function Attrs: nounwind
define hidden void @foo() #0 {
entry:
  %something = alloca [10 x i8], align 1
  call void @llvm.memcpy.p0.p0.i32(ptr noundef nonnull align 1 dereferenceable(10) %something, ptr noundef nonnull align 1 dereferenceable(10) @.str, i32 10, i1 false)
  %call2 = call i32 @bar(ptr nonnull %something)
  ret void
}


declare i32 @bar(...)
```

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


More information about the llvm-commits mailing list