Optimized alloca release
Bug #1756797 reported by
edA-qa
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Leaf |
New
|
Undecided
|
Unassigned |
Bug Description
I recently changed alloca to be function scoped. It was inside loops before therefore stack space slowly ran out.
Ideally this should be limited to logical blocks and "freed".
```
[...]
%8 = call i8* @llvm.stacksave()
%9 = alloca i32, i64 %7, align 16
call void @foo(i32* nonnull %9) #3
all void @llvm.stackrest
[...]
```
To post a comment you must log in.