From: Chris Lattner Date: Wed, 25 Oct 2006 18:08:14 +0000 (+0000) Subject: be more aggressive about matching identical instructions. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=13a04125df039d118c688df26998343a00d8a749;p=oota-llvm.git be more aggressive about matching identical instructions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 9affc696c1b..a47293e048b 100644 --- a/lib/CodeGen/MachineInstr.cpp +++ b/lib/CodeGen/MachineInstr.cpp @@ -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(); } }