[llvm] [IR][NFC] Remove obsolete comments in `BinaryOperator::swapOperands` (PR #125819)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 5 00:08:26 PST 2025
https://github.com/dtcxzyw created https://github.com/llvm/llvm-project/pull/125819
Closes https://github.com/llvm/llvm-project/issues/125438
>From c25f511821b9f4b94ae99becaa3c8bfbd17dd58b Mon Sep 17 00:00:00 2001
From: Yingwei Zheng <dtcxzyw2333 at gmail.com>
Date: Wed, 5 Feb 2025 16:06:33 +0800
Subject: [PATCH] [IR][NFC] Remove obsolete comments in
`BinaryOperator::swapOperands`
---
llvm/lib/IR/Instructions.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/llvm/lib/IR/Instructions.cpp b/llvm/lib/IR/Instructions.cpp
index 1fdf0eab548fdd..e2d607368e94bf 100644
--- a/llvm/lib/IR/Instructions.cpp
+++ b/llvm/lib/IR/Instructions.cpp
@@ -2702,8 +2702,7 @@ BinaryOperator *BinaryOperator::CreateNot(Value *Op, const Twine &Name,
// Exchange the two operands to this instruction. This instruction is safe to
// use on any binary instruction and does not modify the semantics of the
-// instruction. If the instruction is order-dependent (SetLT f.e.), the opcode
-// is changed.
+// instruction.
bool BinaryOperator::swapOperands() {
if (!isCommutative())
return true; // Can't commute operands
More information about the llvm-commits
mailing list