[clang] [lld] [lld][LoongArch] Enable relaxation when --relax option is passed (PR #111488)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 8 20:40:32 PDT 2024


================
@@ -134,6 +134,13 @@ void loongarch::getLoongArchTargetFeatures(const Driver &D,
       (!Args.hasArgNoClaim(clang::driver::options::OPT_march_EQ)))
     Features.push_back("+lsx");
 
+  // -mrelax is default, unless -mno-relax is specified.
----------------
MaskRay wrote:


This code self explains and the comment is not necessary.

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


More information about the llvm-commits mailing list