[llvm] r266007 - NFC: keep comment up to date
JF Bastien via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 11 15:30:38 PDT 2016
Author: jfb
Date: Mon Apr 11 17:30:37 2016
New Revision: 266007
URL: http://llvm.org/viewvc/llvm-project?rev=266007&view=rev
Log:
NFC: keep comment up to date
MergeFunctions was refactored a while ago, and Instruction.cpp's comments went out of sync. The content did as well, will fix later.
Modified:
llvm/trunk/lib/IR/Instruction.cpp
Modified: llvm/trunk/lib/IR/Instruction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Instruction.cpp?rev=266007&r1=266006&r2=266007&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Instruction.cpp (original)
+++ llvm/trunk/lib/IR/Instruction.cpp Mon Apr 11 17:30:37 2016
@@ -271,8 +271,9 @@ const char *Instruction::getOpcodeName(u
}
}
-/// Return true if both instructions have the same special state
-/// This must be kept in sync with lib/Transforms/IPO/MergeFunctions.cpp.
+/// Return true if both instructions have the same special state This must be
+/// kept in sync with FunctionComparator::cmpOperations in
+/// lib/Transforms/IPO/MergeFunctions.cpp.
static bool haveSameSpecialState(const Instruction *I1, const Instruction *I2,
bool IgnoreAlignment = false) {
assert(I1->getOpcode() == I2->getOpcode() &&
@@ -360,8 +361,7 @@ bool Instruction::isIdenticalToWhenDefin
return haveSameSpecialState(this, I);
}
-// isSameOperationAs
-// This should be kept in sync with isEquivalentOperation in
+// Keep this in sync with FunctionComparator::cmpOperations in
// lib/Transforms/IPO/MergeFunctions.cpp.
bool Instruction::isSameOperationAs(const Instruction *I,
unsigned flags) const {
More information about the llvm-commits
mailing list