Skip to content
  • Erik Verbruggen's avatar
    V4 IR: copy arguments to temps at function start. · 07bee265
    Erik Verbruggen authored
    
    
    When arguments cannot "escape" from the current context, and when the
    arguments array is not used, actual arguments can be treated the same
    as temporaries instead of memory locations. This has the benefits that
    they are subject to the same optimizations, and type deduction can
    assume that the value/type didn't change since its assignment. Another
    effect is that the values can be kept in registers, and loads from the
    stack take only 1 indirect load instead of 2 (from the formals array).
    
    Change-Id: I209da7991ec5d903b3c5acdbcaf6b1cc67502520
    Reviewed-by: default avatarLars Knoll <lars.knoll@digia.com>
    07bee265