[llvm-branch-commits] [llvm-branch] r80554 - /llvm/branches/release_26/lib/VMCore/Instruction.cpp

Tanya Lattner tonic at nondot.org
Sun Aug 30 23:33:31 PDT 2009


Author: tbrethou
Date: Mon Aug 31 01:33:31 2009
New Revision: 80554

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

Modified:
    llvm/branches/release_26/lib/VMCore/Instruction.cpp

Modified: llvm/branches/release_26/lib/VMCore/Instruction.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/release_26/lib/VMCore/Instruction.cpp?rev=80554&r1=80553&r2=80554&view=diff

==============================================================================
--- llvm/branches/release_26/lib/VMCore/Instruction.cpp (original)
+++ llvm/branches/release_26/lib/VMCore/Instruction.cpp Mon Aug 31 01:33:31 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-branch-commits mailing list