[PATCH] D86786: GlobalISel: Combine out redundant sext_inreg

Amara Emerson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 28 10:24:31 PDT 2020


aemerson added a comment.

computeNumSignBits() does not mean that the value was sign extended. It only returns you the number of top-most bits that are known to be the same. As a result, this also ends up matching G_ZEXTLOAD which is a bug I hit in an earlier attempt at this.


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

https://reviews.llvm.org/D86786



More information about the llvm-commits mailing list