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

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 7 09:18:31 PST 2023


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

Do we need this variable? Can we use `!isInt<12>(r.sym->getVA(r.addend) - gp->getVA())` in the one place we use the variabe?

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


More information about the llvm-commits mailing list