forked from OSchip/llvm-project
[CGAtomic] Delete outdated code comparing success/failure ordering for cmpxchg.
This doesn't actually have any effect: we only call this code with SequentiallyConsistent orderings. But delete it anyway for consistency with other recent changes.
This commit is contained in:
parent
2644399ce7
commit
577fea4e1a
|
@ -1730,11 +1730,6 @@ AtomicInfo::EmitAtomicCompareExchangeLibcall(llvm::Value *ExpectedAddr,
|
|||
std::pair<RValue, llvm::Value *> AtomicInfo::EmitAtomicCompareExchange(
|
||||
RValue Expected, RValue Desired, llvm::AtomicOrdering Success,
|
||||
llvm::AtomicOrdering Failure, bool IsWeak) {
|
||||
if (isStrongerThan(Failure, Success))
|
||||
// Don't assert on undefined behavior "failure argument shall be no stronger
|
||||
// than the success argument".
|
||||
Failure = llvm::AtomicCmpXchgInst::getStrongestFailureOrdering(Success);
|
||||
|
||||
// Check whether we should use a library call.
|
||||
if (shouldUseLibcall()) {
|
||||
// Produce a source address.
|
||||
|
|
Loading…
Reference in New Issue