[PATCH] D125041: [GlobalISel] Combine G_SHL, G_ASHR, G_SHL of undef shifts to undef.

Jay Foad via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 13 04:12:25 PDT 2022


foad accepted this revision.
foad added a comment.
This revision is now accepted and ready to land.

LGTM. (As I understand it the rationale is that if the rhs is undef, you can assume it is a value >= the bitwidth, so the result is undef.)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D125041



More information about the llvm-commits mailing list