[PATCH] D87465: [TargetLowering] Change SimplifyDemandedBits for XOR
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 2 08:24:36 PST 2021
RKSimon added inline comments.
Herald added a subscriber: pengfei.
================
Comment at: llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp:1367
+ // when all demanded bits of Y and Z are known to be different
+ if (Op0.getOpcode() == ISD::OR &&
+ DemandedBits.isSubsetOf(C->getAPIntValue() ^ C1->getAPIntValue()))
----------------
ISD::AND ?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D87465/new/
https://reviews.llvm.org/D87465
More information about the llvm-commits
mailing list