[LLVMdev] [RFC] "noclone" function attribute

Chris Lattner clattner at apple.com
Mon Dec 3 15:46:46 PST 2012


On Dec 3, 2012, at 9:48 AM, James Molloy <James.Molloy at arm.com> wrote:

> Hi,
> 
> Thanks for the pointers. My patch now calls the attribute "noduplicate",
> and updates CodeMetrics to have another field:
> 
> bool notDuplicatable;
> 
> Which semantically is "containsIndirectBr || containsNoDuplicateInst". I
> didn't repurpose containsIndirectBr because I felt what I'm looking for
> is sufficiently different (indirectbr inhibits inlining, whereas
> noduplicate does not, if there is one call site).

I'm pretty sure that it's fine to inline indirectbr if there is a single call site and the inlinee is to be deleted.

-Chris



More information about the llvm-dev mailing list