[PATCH] D80485: [DAGCombiner][PowerPC][AArch64] Remove isMulhCheaperThanMulShift TLI hook. Use isOperationLegal directly instead.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 22 21:49:58 PDT 2020


craig.topper added a comment.

In D80485#2284943 <https://reviews.llvm.org/D80485#2284943>, @dmgreen wrote:

> @craig.topper @amyk @nemanjai Hello!
> Do we want to keep the isMulhCheaperThanMulShift hook, or change it to a isOperationLegalOrCustom call, like most other transforms would use? If the hook is useful on some targets I can override it under MVE simply enough, let me know.

I would like to see it removed. I'm not sure I understand the PPC implementation. The hook checks isPPC64 and then checks isOperationLegal. Why do we need the extra check for isPPC64, why isn't operation legality sufficient?


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

https://reviews.llvm.org/D80485



More information about the llvm-commits mailing list