[PATCH] D130560: [RISCV] Handle register spill in branch relaxation

Celeste Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 06:20:34 PDT 2022


CoelacanthusHex added a comment.

There seems to be a problem here: if we perform only some operations on registers without sd after a jump (which can easily happen if only a few short instructions are executed between jumps), we then jump to another place. If we still restore immediately in this case, we are actually wasting resources.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130560/new/

https://reviews.llvm.org/D130560



More information about the llvm-commits mailing list