]> git.ipfire.org Git - thirdparty/gcc.git/commit
RISC-V: Do not inline when callee is versioned but caller is not
authorYangyu Chen <cyy@cyyself.name>
Thu, 24 Oct 2024 07:12:45 +0000 (15:12 +0800)
committerKito Cheng <kito.cheng@sifive.com>
Thu, 31 Oct 2024 10:37:51 +0000 (18:37 +0800)
commiteb828a1e380e7bb5a708c899081541ee9130ff87
tree2e3c93dcc48f6e548e795b4dd18720f14c823a17
parentf011f8908182fd05ddd9a34881507b8584c44fb2
RISC-V: Do not inline when callee is versioned but caller is not

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 callee is versioned but caller is not.
gcc/config/riscv/riscv.cc