This patchset implements a new feature to redirect to a specific target
based on the TARGET_VERSION_COMPATIBLE macro. This allows for more
precise FMV callee selection and better performance for certain
architectures. Especially for those callee that needs to be inlined,
this patchset can help to avoid unnecessary function calls and improve
performance. The idea comes from the previous dicussion on the
gcc-patches mailing list [1].

Additionally, this patchset also includes a implementation of
TARGET_VERSION_COMPATIBLE for RISC-V, which allows for more
flexibility in selecting the target version for RISC-V architectures.

[1] https://patchwork.sourceware.org/comment/197172/

Yangyu Chen (3):
  Redirect to specific target based on TARGET_VERSION_COMPATIBLE
  RISC-V: Split parse_features_for_version with cl_target_option
    returned
  RISC-V: Implement TARGET_VERSION_COMPATIBLE

 gcc/config/riscv/riscv.cc | 84 ++++++++++++++++++++++++++++-----------
 gcc/doc/tm.texi           |  7 ++++
 gcc/doc/tm.texi.in        |  2 +
 gcc/multiple_target.cc    | 58 +++++++++++++++++----------
 gcc/target.def            | 12 ++++++
 5 files changed, 118 insertions(+), 45 deletions(-)

-- 
2.49.0

Reply via email to