be more aggressive about matching identical instructions.
authorChris Lattner <sabre@nondot.org>
Wed, 25 Oct 2006 18:08:14 +0000 (18:08 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 25 Oct 2006 18:08:14 +0000 (18:08 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31179 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/MachineInstr.cpp

index 9affc696c1bfe3b74e32c3f8342c621d0275dd7f..a47293e048be4249e8b99d7d73d6fbc882e1a0f4 100644 (file)
@@ -120,7 +120,7 @@ bool MachineOperand::isIdenticalTo(const MachineOperand &Other) const {
   case MachineOperand::MO_GlobalAddress:
     return getGlobal() == Other.getGlobal() && getOffset() == Other.getOffset();
   case MachineOperand::MO_ExternalSymbol:
-    return getSymbolName() == Other.getSymbolName() &&
+    return !strcmp(getSymbolName(), Other.getSymbolName()) &&
            getOffset() == Other.getOffset();
   }
 }