[Improvement]: Optimize the LHS temporary variables in BIR for map creation #40805
Labels
Area/BIR
Compiler BIR related issues #Compiler
Reason/Other
None of the other reasons.
Team/jBallerina
All the issues related to BIR, JVM backend code generation and runtime
Type/Improvement
Description
$subject
Describe your problem(s)
We optimize the use of LHS temporary variables at the
BIROptimizer
to re-use the loaded variables. But this wasn't applied to the initial values passed to theNewMap
andNewArray
instructions. Therefore these variables do not get re-used. We need to do the same for the initial values as well.Describe your solution(s)
No response
Related area
-> Runtime
Related issue(s) (optional)
#37351
Suggested label(s) (optional)
No response
Suggested assignee(s) (optional)
No response
The text was updated successfully, but these errors were encountered: