This should use isIndenticalToWhenDefined.
authorDan Gohman <gohman@apple.com>
Tue, 25 Aug 2009 22:24:20 +0000 (22:24 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 25 Aug 2009 22:24:20 +0000 (22:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80039 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Instruction.cpp

index 332ecf9782db4ed03aa3f60ebbd5ecafb78efca7..815dd7e7bd94b52ca1d4910d8003b94ba4bb2e8d 100644 (file)
@@ -168,11 +168,11 @@ const char *Instruction::getOpcodeName(unsigned OpCode) {
 /// 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 {