From a13c89f8d47d71b8a67c4e5c645a2246a52aef3e Mon Sep 17 00:00:00 2001 From: Tanya Lattner Date: Mon, 31 Aug 2009 06:33:31 +0000 Subject: [PATCH] Merge from mainline. This should use isIndenticalToWhenDefined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_26@80554 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Instruction.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/VMCore/Instruction.cpp b/lib/VMCore/Instruction.cpp index 332ecf9782d..815dd7e7bd9 100644 --- a/lib/VMCore/Instruction.cpp +++ b/lib/VMCore/Instruction.cpp @@ -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 { -- 2.50.1