[lld] [RISCV] Compress unrelaxable lui when RVC attribute is present (PR #74715)

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 07:43:39 PST 2023


================
@@ -650,8 +650,36 @@ static void relaxHi20Lo12(const InputSection &sec, size_t i, uint64_t loc,
   if (!gp)
     return;
 
+  bool noRelaxation = false;
----------------
nemanjai wrote:

Sure. This was added in anticipation of another reason we might decide not to relax that is added in  [this PR](https://github.com/llvm/llvm-project/pull/73624)

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


More information about the llvm-commits mailing list