Do not store direct parameters that are only read.

This commit is contained in:
Christoffer Lerno
2022-01-04 23:16:32 +01:00
parent 1d5ff71b21
commit 869aa7ed76
46 changed files with 606 additions and 709 deletions

View File

@@ -20,10 +20,6 @@ fn void main()
define i32 @demo.my_callback(i8* %0, i32 %1) #0 {
entry:
%text = alloca i8*, align 8
%value = alloca i32, align 4
store i8* %0, i8** %text, align 8
store i32 %1, i32* %value, align 4
ret i32 0
}