[PATCH] D136323: [ADT] Add APInt::isInvertOf
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 20 02:24:34 PDT 2022
serge-sans-paille created this revision.
serge-sans-paille added reviewers: nikic, craig.topper.
Herald added subscribers: StephenFan, ecnelises, atanasyan, jrtc27, hiraditya, sdardis.
Herald added a project: All.
serge-sans-paille requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
The pattern is frequent enough to have its own implementation, which is
both more explicit and (slightly) faster than the default idiom.
Also use it to implement a faster llvm::KnownBits::isConstant() that doesn't
rely on popcnt.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D136323
Files:
llvm/include/llvm/ADT/APInt.h
llvm/include/llvm/Support/KnownBits.h
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
llvm/lib/Support/APInt.cpp
llvm/lib/Target/AArch64/AArch64ISelDAGToDAG.cpp
llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
llvm/lib/Target/Mips/MipsSEISelLowering.cpp
llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/unittests/ADT/APIntTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D136323.469139.patch
Type: text/x-patch
Size: 13407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221020/b6a67f56/attachment.bin>
More information about the llvm-commits
mailing list