Skip to content
  • Arnold Schwaighofer's avatar
    Mark the return address stack slot as mutable when moving the return address · 30ece5b8
    Arnold Schwaighofer authored
    during a tail call. A parameter might overwrite this stack slot during the tail
    call. 
    
    The sequence during a tail call is:
    1.) load return address to temp reg
    2.) move parameters (might involve storing to return address stack slot)
    3.) store return address to new location from temp reg
    
    If the stack location is marked immutable CodeGen can colocate load (1) with the
    store (3).
    
    This fixes bug 6225.
    
    llvm-svn: 96783
    30ece5b8
Loading