[LLVMdev] Instructions that cannot be duplicated

Reid Kleckner rnk at mit.edu
Fri Oct 9 11:52:48 PDT 2009


If the call to the noinline function was duplicated, when you did the
final inline to multiple locations, you would have duplicated the
original barrier instruction.

Reid

On Fri, Oct 9, 2009 at 2:33 PM, Devang Patel <devang.patel at gmail.com> wrote:
> On Fri, Oct 9, 2009 at 11:06 AM, Mon Ping Wang <monping at apple.com> wrote:
>>
>> Yes, this is the case.   The platforms I'm thinking of don't support
>> function calls and have the optimization-hostile barrier instructions.
>>
>>   -- Mon Ping
>
>
> How about you do two stage inlining for such platforms ?
>
> 1. Inline everything except barrier functions
> 2. Apply usual transformations
> 3. Inline barrier functions
>
> -
> Devang
>




More information about the llvm-dev mailing list