[PATCH] D87384: [PowerPC] Add ISEL patterns for Mul with Imm.
Jinsong Ji via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 23 06:06:05 PDT 2020
jsji added a comment.
In D87384#2289477 <https://reviews.llvm.org/D87384#2289477>, @Esme wrote:
> Hi @jsji An infinite loop will occur if we handle the scenario 1 ` (mul X, c2 << c1) -> (mul (shl X, c1), c2)` in DAGCombiner, because there exists a reverse conversion `(mul (shl X, c1), c2) -> (mul X, c2 << c1)`.
Hmm.. then OK to keep this in ISEL, but please add comments about DAGcombiner prefer (mul X, c2 << c1). Thanks
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87384/new/
https://reviews.llvm.org/D87384
More information about the llvm-commits
mailing list