Re: [PATCH v3 08/11] RISC-V: Do not inline when callee is versioned but caller is not

2024-10-31 Thread Kito Cheng
Good catch, I think it makes sense since a user using FMV means they care about the performance of that function, so we should keep the call and not inline here. This should be committed after the FMV is implemented, but I think this is simple enough, so I committed this to trunk :) On Thu, Oct

[PATCH v3 08/11] RISC-V: Do not inline when callee is versioned but caller is not

2024-10-24 Thread Yangyu Chen
When the callee is versioned but the caller is not, we should not inline the callee into the caller, to prevent the default version of the callee from being inlined into a not versioned caller. gcc/ChangeLog: * config/riscv/riscv.cc (riscv_can_inline_p): Refuse to inline when call