Skip to content
  • Erik Verbruggen's avatar
    V4 IR: Add loop peeling. · 2ae518d3
    Erik Verbruggen authored
    
    
    By peeling the first iteration off of a loop and putting it in front of
    the loop, type inference can deduce more type information for esp. loop
    induction variables. To prevent increasing the code size too much, only
    the inner-most loops are peeled.
    
    This gives a 10% speed-up on crypto.js.
    
    Change-Id: I57f9611695bc8defc0bff84e440b8a20b2c8a34e
    Reviewed-by: default avatarFawzi Mohamed <fawzi.mohamed@digia.com>
    2ae518d3