[PATCH] D159198: [DAG] Fold (shl (sext (add_nsw x, c1)), c2) -> (add (shl (sext x), c2), c1 << c2)
Noah Goldstein via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 11:45:27 PDT 2023
goldstein.w.n accepted this revision.
goldstein.w.n added a comment.
This revision is now accepted and ready to land.
In D159198#4633898 <https://reviews.llvm.org/D159198#4633898>, @RKSimon wrote:
> Any further comments - does any of the RISCV gurus have any thoughts on whether isDesirableToCommuteWithShift needs adjusting?
X86 aspect LGTM.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D159198/new/
https://reviews.llvm.org/D159198
More information about the llvm-commits
mailing list