[PATCH] D32784: [KnownBits] Add zext, sext, and trunc methods to KnownBits

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 3 08:27:49 PDT 2017


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

LGTM



================
Comment at: include/llvm/Support/KnownBits.h:30
+  KnownBits(APInt Zero, APInt One)
+      : Zero(std::move(Zero)), One(std::move(One)) {}
+
----------------
Add assertion for equal bitwidths? Might not be worth it as its private.


https://reviews.llvm.org/D32784





More information about the llvm-commits mailing list