[PATCH] D102969: [GlobalISel] Add G_SBFX/G_UBFX to computeKnownBits

Brendon Cahoon via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 25 10:18:40 PDT 2021


bcahoon updated this revision to Diff 347718.
bcahoon added a comment.

Addressed review comments.
Use getBitsSetFrom and getLowBitsSet to compute mask for the width operand
of G_SBFX/G_UBFX as suggested.
Added tests for computeNumSignBits for G_SBFX/G_UBFX.
Fix clang-tidy formatting issues.


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

https://reviews.llvm.org/D102969

Files:
  llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
  llvm/unittests/CodeGen/GlobalISel/KnownBitsTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D102969.347718.patch
Type: text/x-patch
Size: 11237 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210525/0092e17c/attachment.bin>


More information about the llvm-commits mailing list