summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/MergeFunctions.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-02-06 04:33:50 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-02-06 04:33:50 +0000
commitf8797fda44da0b0dfc4294957f7edc72caf2e34c (patch)
tree9ad9839d33ac416d45a738adbbcaf1d817462c96 /llvm/lib/Transforms/IPO/MergeFunctions.cpp
parent82a0d26294d5d19debb8be428f0b592d59ec043e (diff)
downloadbcm5719-llvm-f8797fda44da0b0dfc4294957f7edc72caf2e34c.tar.gz
bcm5719-llvm-f8797fda44da0b0dfc4294957f7edc72caf2e34c.zip
Remove specialized comparison of InlineAsm objects. They're uniqued on creation
now, and this wasn't comparing some of their relevant bits anyhow. llvm-svn: 124976
Diffstat (limited to 'llvm/lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/MergeFunctions.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Transforms/IPO/MergeFunctions.cpp b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
index e2dd48458b4..44f39fb5bac 100644
--- a/llvm/lib/Transforms/IPO/MergeFunctions.cpp
+++ b/llvm/lib/Transforms/IPO/MergeFunctions.cpp
@@ -389,12 +389,8 @@ bool FunctionComparator::enumerate(const Value *V1, const Value *V2) {
C1 == ConstantExpr::getBitCast(const_cast<Constant*>(C2), C1->getType());
}
- if (isa<InlineAsm>(V1) && isa<InlineAsm>(V2)) {
- const InlineAsm *IA1 = cast<InlineAsm>(V1);
- const InlineAsm *IA2 = cast<InlineAsm>(V2);
- return IA1->getAsmString() == IA2->getAsmString() &&
- IA1->getConstraintString() == IA2->getConstraintString();
- }
+ if (isa<InlineAsm>(V1) || isa<InlineAsm>(V2))
+ return V1 == V2;
unsigned long &ID1 = Map1[V1];
if (!ID1)
OpenPOWER on IntegriCloud