Move more alloca to the beginning of function #334

Merged
sb10q merged 1 commits from enhance/alloca-improvements into master 2024-08-17 17:37:20 +08:00
Collaborator

Extension to #333; All temporary variables and exceptions are now alloca'ed at the beginning of the function.

Extension to #333; All temporary variables and exceptions are now `alloca`'ed at the beginning of the function.
derppening added 3 commits 2023-10-06 12:17:54 +08:00
0c49b30a90 core: Restore debug info before function call is invoked
Previously, the IR which sets up the call to the target function will
have its debug location pointing at the last argument of the function
call instead of the function call itself.
60a503a791 core: Allocate more stack variables at the beginning of function
All allocas for temporary objects are now placed in the beginning of the
function. Allocas for on-temporary objects are not modified because
these variables may appear in a loop and thus must be uniquely
allocated by different allocas.
a2fce49b26 core: Allocate exceptions at the beginning of function
Only one instance of exception is necessary, as exceptions will always
be initialized before being thrown.
sb10q merged commit a2fce49b26 into master 2023-10-06 12:20:00 +08:00
sb10q deleted branch enhance/alloca-improvements 2023-10-06 12:20:01 +08:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: M-Labs/nac3#334
No description provided.