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 | 7a7835deb4c732054722efd4971a033791230958 (patch) | |
tree | 870199ed762893b196c228543fae8e0715bef59c /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | f1a1773fb751e532c6c155cf26a022d4696f6814 (diff) | |
download | bcm5719-llvm-7a7835deb4c732054722efd4971a033791230958.tar.gz bcm5719-llvm-7a7835deb4c732054722efd4971a033791230958.zip |
be more aggressive about matching identical instructions.
llvm-svn: 31179
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineInstr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineInstr.cpp b/llvm/lib/CodeGen/MachineInstr.cpp index 9affc696c1b..a47293e048b 100644 --- a/llvm/lib/CodeGen/MachineInstr.cpp +++ b/llvm/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(); } } |