[llvm] [clang] [RISCV] Collapse fast unaligned access into a single feature [nfc-ish] (PR #73971)

Wang Pengcheng via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 30 19:24:44 PST 2023


================
@@ -171,18 +171,12 @@ void riscv::getRISCVTargetFeatures(const Driver &D, const llvm::Triple &Triple,
     Features.push_back("-save-restore");
 
   // -mno-unaligned-access is default, unless -munaligned-access is specified.
-  bool HasV = llvm::is_contained(Features, "+zve32x");
   if (const Arg *A = Args.getLastArg(options::OPT_munaligned_access,
----------------
wangpc-pp wrote:

This whole sippet can be replaced by `tools::AddTargetFeature`.

https://github.com/llvm/llvm-project/pull/73971


More information about the cfe-commits mailing list