[X86] Use lock add/sub/or/and/xor for cases that we only care about the EFLAGS (negat...
authorPhoebe Wang <phoebe.wang@intel.com>
Wed, 23 Nov 2022 01:05:59 +0000 (09:05 +0800)
committerPhoebe Wang <phoebe.wang@intel.com>
Wed, 23 Nov 2022 01:39:04 +0000 (09:39 +0800)
commit7218103bcaca36be0287172a91ae2907ca20930c
tree03f4da2faffa4eacbd6ecf9942457dbef36752af
parent8f0cd7c1d0af6484eb75369a231408649bb0ce88
[X86] Use lock add/sub/or/and/xor for cases that we only care about the EFLAGS (negated cases)

This fixes #58685

Reviewed By: RKSimon

Differential Revision: https://reviews.llvm.org/D138428
llvm/lib/Target/X86/X86ISelLowering.cpp
llvm/test/CodeGen/X86/pr58685.ll