Closed madmann91 closed 9 years ago
The code before _liftenters is already broken. The qs32* _242 = lea stack_114, qu32 1
is never initialized.
So this (insert bottom Stack{[64 x qs32], qs32}, qu32 1, qs32 0)
does not initialize the first field of the stack ?
I mean, the stack_id
member.
Oh crap, you are right.
Compilation of the following code produces an incorrect result:
The llvm output is:
One can clearly see that the id member of the stack is not initialized when it should be in the main_impala function. The Thorin IR is correct up to the _liftenters pass.
Before _liftenters:
After _liftenters: