[PATCH] D139135: [RISCV] Teach RISCVMatInt to prefer li+slli over lui+addi(w) for compressibility.

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 10:25:34 PST 2022


reames accepted this revision.
reames added a comment.
This revision is now accepted and ready to land.

LGTM

JFYI, Craig and I talked about this one a bit offline.  My prior proposal (to use the cost metric) doesn't simplify this code - I tried locally - and Craig has landed some cleanups to the surrounding code which makes it easier to read anyways.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D139135



More information about the llvm-commits mailing list