[PATCH] D74060: [KnownBits] Move AND, OR and XOR logic into KnownBits
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 8 13:03:07 PDT 2020
lebedev.ri accepted this revision.
lebedev.ri added a comment.
This revision is now accepted and ready to land.
Sorry for the delay, this looks like a reasonable cleanup to me.
Thanks.
================
Comment at: llvm/lib/Support/KnownBits.cpp:86-104
+ // Each result bit is 0 if either operand bit is 0.
+ Zero |= RHS.Zero;
+ // Each result bit is 1 if both operand bits are 1.
+ One &= RHS.One;
+ return *this;
+}
+
----------------
s/Each result/Result/
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74060/new/
https://reviews.llvm.org/D74060
More information about the llvm-commits
mailing list