summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineInstr.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-10-25 18:08:14 +0000
committerChris Lattner <sabre@nondot.org>2006-10-25 18:08:14 +0000
commit7a7835deb4c732054722efd4971a033791230958 (patch)
tree870199ed762893b196c228543fae8e0715bef59c /llvm/lib/CodeGen/MachineInstr.cpp
parentf1a1773fb751e532c6c155cf26a022d4696f6814 (diff)
downloadbcm5719-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.cpp2
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();
}
}
OpenPOWER on IntegriCloud