[PATCH] D62857: [RISCV] Prevent re-ordering some adds after shifts

Sam Elliott via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 03:21:30 PDT 2019


lenary updated this revision to Diff 203525.
lenary marked an inline comment as done.
lenary added a comment.

- Allow Combine if `C1 << C2` will fit into an immediate
- Explain restrictions on RISCVMatInt::getIntMatCost


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62857

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/Utils/RISCVMatInt.cpp
  llvm/lib/Target/RISCV/Utils/RISCVMatInt.h
  llvm/test/CodeGen/RISCV/add-before-shl.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62857.203525.patch
Type: text/x-patch
Size: 7188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190607/95d1e584/attachment.bin>


More information about the llvm-commits mailing list