[PATCH] D149689: [X86] Lower used `(atomicrmw xor p, SignBit)` as `(atomicrmw add p, SignBit)`
Simon Pilgrim via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 3 11:03:35 PDT 2023
RKSimon added inline comments.
================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:32257
+ // preferable to both `cmpxchg` and `btc`.
+ if (match(AI->getOperand(1), m_APInt(C)) && C->isMinSignedValue())
+ return AtomicExpansionKind::None;
----------------
While you're here - please can you add a m_MinSignedValue equivalent to the existing m_MaxSignedValue matcher?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149689/new/
https://reviews.llvm.org/D149689
More information about the llvm-commits
mailing list