[llvm-commits] [llvm] r80039 - /llvm/trunk/lib/VMCore/Instruction.cpp

Dan Gohman gohman at apple.com
Tue Aug 25 15:24:20 PDT 2009


Author: djg
Date: Tue Aug 25 17:24:20 2009
New Revision: 80039

URL: http://llvm.org/viewvc/llvm-project?rev=80039&view=rev
Log:
This should use isIndenticalToWhenDefined.

Modified:
    llvm/trunk/lib/VMCore/Instruction.cpp

Modified: llvm/trunk/lib/VMCore/Instruction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/VMCore/Instruction.cpp?rev=80039&r1=80038&r2=80039&view=diff

==============================================================================
--- llvm/trunk/lib/VMCore/Instruction.cpp (original)
+++ llvm/trunk/lib/VMCore/Instruction.cpp Tue Aug 25 17:24:20 2009
@@ -168,11 +168,11 @@
 /// identical to the current one.  This means that all operands match and any
 /// extra information (e.g. load is volatile) agree.
 bool Instruction::isIdenticalTo(const Instruction *I) const {
-  return isIdenticalTo(I) &&
+  return isIdenticalToWhenDefined(I) &&
          SubclassOptionalData == I->SubclassOptionalData;
 }
 
-/// isIdenticalToWenDefined - This is like isIdenticalTo, except that it
+/// isIdenticalToWhenDefined - This is like isIdenticalTo, except that it
 /// ignores the SubclassOptionalData flags, which specify conditions
 /// under which the instruction's result is undefined.
 bool Instruction::isIdenticalToWhenDefined(const Instruction *I) const {





More information about the llvm-commits mailing list