Skip to content
  • James Molloy's avatar
    Add a new attribute, 'noduplicate'. If a function contains a noduplicate call,... · 4f6fb953
    James Molloy authored
    Add a new attribute, 'noduplicate'. If a function contains a noduplicate call, the call cannot be duplicated - Jump threading, loop unrolling, loop unswitching, and loop rotation are inhibited if they would duplicate the call.
    
    Similarly inlining of the function is inhibited, if that would duplicate the call (in particular inlining is still allowed when there is only one callsite and the function has internal linkage).
    
    llvm-svn: 170704
    4f6fb953
Loading