On Mon, Oct 14, 2019 at 06:35:06PM +0200, Richard Biener wrote:
> The general case should be that if the caller ISA supports the callee one 
> then inlining is OK. If this is not wanted in some cases then there are 
> options like using a noinline attribute. 

I agree, and that is what we already do afaik.

But in this case, the callee explicitly disables something (-mno-vsx),
while the caller has it enabled (all modern cpus have VSX).  If it ends
up being inlined, it will get VSX insns generated for it.  Which is what
Jiu Fu's patch aims to prevent.

So you are saying the GCC policy is that you should use noinline on the
callee in such cases?


Segher

Reply via email to