[all-commits] [llvm/llvm-project] 7f51a9: [RISCV] Fix RISCVTargetInfo::initFeatureMap, add n...

Yueh-Ting (eop) Chen via All-commits all-commits at lists.llvm.org
Sun Feb 13 21:05:25 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7f51a9e2730e32eec45ff2e91b3d7bae897893e4
  Author: eopXD <eop.chen at sifive.com>
  Date:   2022-02-13 (Sun, 13 Feb 2022)

  Changed paths:
    M clang/lib/Basic/Targets/RISCV.cpp
    A clang/test/Driver/riscv-default-features.c

  Log Message:
  [RISCV] Fix RISCVTargetInfo::initFeatureMap, add non-ISA features back after implication

Previously D113336 makes RISCVTargetInfo::initFeatureMap return the results
processed by RISCVISAInfo, which only consists of ISA features and misses
non-ISA features like `relax` and `save-restore`.

This patch fixes the problem.

Reviewed By: junparser

Differential Revision: https://reviews.llvm.org/D119541

More information about the All-commits mailing list