[PATCH] D134684: [LegalizeTypes][Mips][RISCV][SystemZ] Mask shift amounts in ExpandShiftWithUnknownAmountBit.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 09:43:28 PDT 2022


efriedma added a comment.

If we're not allowed to use the libcall with out-of-bounds shift amounts at all, don't we need to unconditionally mask before we generate the libcall?  In general, we can speculate out-of-bounds shifts at the IR level; it doesn't make sense to special-case out-of-bounds shifts generated in SelectionDAG.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134684



More information about the llvm-commits mailing list