[llvm] [LangRef] Relax semantics of writeonly / memory(write) (PR #95238)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 02:18:17 PDT 2024
================
@@ -2359,20 +2359,20 @@ static Instruction *foldSelectCmpBitcasts(SelectInst &Sel,
/// operand, the result of the select will always be equal to its false value.
/// For example:
///
-/// %0 = cmpxchg i64* %ptr, i64 %compare, i64 %new_value seq_cst seq_cst
-/// %1 = extractvalue { i64, i1 } %0, 1
-/// %2 = extractvalue { i64, i1 } %0, 0
-/// %3 = select i1 %1, i64 %compare, i64 %2
-/// ret i64 %3
+/// %cmpxchg = cmpxchg ptr %ptr, i64 %compare, i64 %new_value seq_cst seq_cst
----------------
nikic wrote:
Yeah, that was not supposed to be there... Dropped the commit!
https://github.com/llvm/llvm-project/pull/95238
More information about the llvm-commits
mailing list