Skip to content
  • Justin Bogner's avatar
    Protect user-supplied runtime library functions in LTO · b10a520c
    Justin Bogner authored
    Add user-supplied C runtime and compiler-rt library functions to
    llvm.compiler.used to protect them from premature optimization by
    passes like -globalopt and -ipsccp.  Calls to (seemingly unused)
    runtime library functions can be added by -instcombine and instruction
    lowering.
    
    Patch by Duncan Exon Smith, thanks!
    
    Fixes <rdar://problem/14740087>
    
    llvm-svn: 194514
    b10a520c
Loading