[PATCH] D142345: [X86] Transform `(icmp eq/ne Abs(A), Pow2)` -> `(and/or (icmp eq/ne A,Pow2), (icmp eq/ne A,-Pow2))`
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 23 03:41:18 PST 2023
RKSimon added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:53394
+ if (auto *C = dyn_cast<ConstantSDNode>(RHS)) {
+ APInt CInt = C->getAPIntValue();
+ // We can better optimize this case in DAGCombiner::foldAndOrOfSETCC.
----------------
const APInt &CInt
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D142345/new/
https://reviews.llvm.org/D142345
More information about the llvm-commits
mailing list