diff options
author | Chris Lattner <sabre@nondot.org> | 2006-10-25 18:08:14 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-10-25 18:08:14 +0000 |
commit | 13a04125df039d118c688df26998343a00d8a749 (patch) | |
tree | 0792e8f6662258ce571a000112213b0f15b636f8 /lib/CodeGen/MachineInstr.cpp | |
parent | f6036182a5c0ff0d73492c93374fd583eebcd1dc (diff) |
be more aggressive about matching identical instructions.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31179 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/MachineInstr.cpp b/lib/CodeGen/MachineInstr.cpp index 9affc696c1..a47293e048 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(); } } |