[PATCH] D125836: [DAG] Fold (srl (shl x, c1), c2) -> and(shl/srl(x, c3), m) (WIP)
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 13 02:08:33 PDT 2022
foad added a comment.
Surely the (srl (shl x, c1), c2) form is better for targets which aren't good at doing an AND-with-large-immediate-value. Is this supposed to be a canonicalization, which targets will undo later as appropriate?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125836/new/
https://reviews.llvm.org/D125836
More information about the llvm-commits
mailing list