Skip to content
  • Reid Kleckner's avatar
    [GlobalOpt] Don't apply fastcc if it would break inalloca invariants · 80c6ec11
    Reid Kleckner authored
    The inalloca parameter has to be the only parameter passed in memory.
    Changing the convention to fastcc can break that.
    
    At some point we should teach global opt how to optimize ABI attributes
    like inalloca and maybe byval. These attributes are mainly used to match
    C ABIs. They are harder for LLVM to optimize and they don't always
    generate the best code.
    
    Fixes PR38487
    
    llvm-svn: 339360
    80c6ec11
Loading