[PATCH] D108992: [KnownBits] Add support for X+X and X*X self-addition/multiplication
Jay Foad via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 1 03:17:26 PDT 2021
foad added inline comments.
================
Comment at: llvm/lib/Support/KnownBits.cpp:61
if (Add) {
+ if (SelfAdd) {
+ // Sum = LHS + LHS = LHS << 1
----------------
I'm not a huge fan of making this part of the existing computeForAddSub function, since it's a completely separate code path. How about a new computeForSelfAdd instead?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D108992/new/
https://reviews.llvm.org/D108992
More information about the llvm-commits
mailing list