diff options
author | JF Bastien <jfb@google.com> | 2016-04-11 22:30:37 +0000 |
---|---|---|
committer | JF Bastien <jfb@google.com> | 2016-04-11 22:30:37 +0000 |
commit | 3b6eaace6289f5ee9f21e6859d7964fd89760b06 (patch) | |
tree | 7128924ed14a088875e9676071bedf96b443c01c /llvm/lib/IR/Instruction.cpp | |
parent | ddb499a45326c9b813a105713ea590561d5a3662 (diff) | |
download | bcm5719-llvm-3b6eaace6289f5ee9f21e6859d7964fd89760b06.tar.gz bcm5719-llvm-3b6eaace6289f5ee9f21e6859d7964fd89760b06.zip |
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.
llvm-svn: 266007
Diffstat (limited to 'llvm/lib/IR/Instruction.cpp')
-rw-r--r-- | llvm/lib/IR/Instruction.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/IR/Instruction.cpp b/llvm/lib/IR/Instruction.cpp index e2b5e2777fa..62cb6b27428 100644 --- a/llvm/lib/IR/Instruction.cpp +++ b/llvm/lib/IR/Instruction.cpp @@ -271,8 +271,9 @@ const char *Instruction::getOpcodeName(unsigned OpCode) { } } -/// 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::isIdenticalToWhenDefined(const Instruction *I) const { 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 { |