Skip to content
  • Benjamin Kramer's avatar
    X86: Disable generation of rep;movsl when %esi is used as a base pointer. · 8e2637e2
    Benjamin Kramer authored
    This happens when there is both stack realignment and a dynamic alloca in the
    function. If we overwrite %esi (rep;movsl uses fixed registers) we'll lose the
    base pointer and the next register spill will write into oblivion.
    
    Fixes PR15249 and unbreaks firefox on i386/freebsd. Mozilla uses dynamic allocas
    and freebsd a 4 byte stack alignment.
    
    llvm-svn: 175057
    8e2637e2
Loading