diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2011-02-06 04:33:50 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2011-02-06 04:33:50 +0000 |
commit | d489332549f226701825de990a2f5869dad96ace (patch) | |
tree | ddd76eb817950f88e04b048b2db6d115a497aab8 /lib/Transforms/IPO/MergeFunctions.cpp | |
parent | 5a858e3416b13c2d796dfb9fc31f1e216e0acc2c (diff) |
Remove specialized comparison of InlineAsm objects. They're uniqued on creation
now, and this wasn't comparing some of their relevant bits anyhow.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124976 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/IPO/MergeFunctions.cpp')
-rw-r--r-- | lib/Transforms/IPO/MergeFunctions.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index e2dd48458b..44f39fb5ba 100644 --- a/lib/Transforms/IPO/MergeFunctions.cpp +++ b/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) |