[PATCH] D130466: [LICM] - Add option to force thread model single
Shubham Narlawar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 30 04:00:10 PDT 2022
gsocshubham added inline comments.
================
Comment at: llvm/test/Transforms/LICM/promote-sink-store-global.ll:85
+entry:
+ %n.addr = alloca i32, align 4
+ %a = alloca i32, align 4
----------------
gsocshubham wrote:
> This IR is obtained from C code -
>
> ```
> int u, v;
>
> void f(int n) {
> int a;
> for (int i = 0; i < n; ++i) {
> u = i;
> a = v;
> }
> }
> ```
Now the latest IR is being generated using below C code followed by -sroa
```
int u, v;
int f(int n) {
int a;
for (int i = 0; i < n; ++i) {
u = i;
a = v;
}
return u + a;
}
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130466/new/
https://reviews.llvm.org/D130466
More information about the llvm-commits
mailing list