[PATCH] D30525: [APInt] Add setLowBits/setHighBits methods to APInt.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 3 19:05:59 PST 2017


craig.topper updated this revision to Diff 90562.
craig.topper added a comment.

Cleanup the comments in setBitsSlowCase. Modify the implementation to just AND the low and high masks together when loWord and hiWord are the same.


https://reviews.llvm.org/D30525

Files:
  include/llvm/ADT/APInt.h
  lib/Support/APInt.cpp
  unittests/ADT/APIntTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D30525.90562.patch
Type: text/x-patch
Size: 8600 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170304/c108c2e7/attachment.bin>


More information about the llvm-commits mailing list