[llvm] [LangRef] Relax semantics of writeonly / memory(write) (PR #95238)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 02:14:20 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
----------------
dtcxzyw wrote:
I don't think this commit is related to the PR.
https://github.com/llvm/llvm-project/pull/95238
More information about the llvm-commits
mailing list