diff --git a/lib/Transforms/IPO/MergeFunctions.cpp b/lib/Transforms/IPO/MergeFunctions.cpp index e2dd48458b4..44f39fb5bac 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(C2), C1->getType()); } - if (isa(V1) && isa(V2)) { - const InlineAsm *IA1 = cast(V1); - const InlineAsm *IA2 = cast(V2); - return IA1->getAsmString() == IA2->getAsmString() && - IA1->getConstraintString() == IA2->getConstraintString(); - } + if (isa(V1) || isa(V2)) + return V1 == V2; unsigned long &ID1 = Map1[V1]; if (!ID1)