[PATCH] D111141: [RISCV] Optimize (add (mul r, c0), c1)
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 19:37:43 PDT 2021
benshi001 added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVISelLowering.cpp:6451
return V;
- // Fold (add (shl x, c0), (shl y, c1)) ->
- // (SLLI (SH*ADD x, y), c0), if c1-c0 equals to [1|2|3].
----------------
Repeated comments are removed.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111141/new/
https://reviews.llvm.org/D111141
More information about the llvm-commits
mailing list