[PATCH] D159533: [DAG] getNode() - fold (zext (trunc x)) -> x iff the upper bits are known zero - add SRL support

Jeffrey Byrnes via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 15:24:17 PDT 2023


jrbyrnes added a comment.

In D159533#4649035 <https://reviews.llvm.org/D159533#4649035>, @RKSimon wrote:

> @jrbyrnes I've pulled the AMDGPUISD::PERM matching out of performOrCombine, made it into a 'matchPERM' helper and setup ISD::FSHR to use it - is this what you had in mind?

Yes something along these lines, although we will need to teach calculateByteProvider about ISD::FSHR (and might as well teach about ISD::FSHL) -- I'm working on this patch currently.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D159533



More information about the llvm-commits mailing list