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

Alex Bradbury via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 01:10:58 PDT 2019


asb added inline comments.


================
Comment at: llvm/test/CodeGen/RISCV/add-before-shl.ll:13
+; efficient to perform the add before the shift if the constant to be
+; added fits into an immediate.
+
----------------
The patch has since been updated to do a direct cost comparison, rather than just looking at the case where the constant fits into an immediate. These two paragraphs should be updated to reflect that


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D62857





More information about the llvm-commits mailing list