From ca982e6b42a2cbfae824094a48ba196f68b4c925 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 21 Oct 2002 02:09:03 +0000 Subject: [PATCH] Two callsites are equivalent even if they are from two completely different call instructions llvm-svn: 4241 --- include/llvm/Analysis/DSGraph.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/llvm/Analysis/DSGraph.h b/include/llvm/Analysis/DSGraph.h index f07b69e4cee..f1b01e7438a 100644 --- a/include/llvm/Analysis/DSGraph.h +++ b/include/llvm/Analysis/DSGraph.h @@ -409,8 +409,6 @@ public: } bool operator<(const DSCallSite &CS) const { - if (Inst < CS.Inst) return true; - if (Inst > CS.Inst) return false; if (RetVal < CS.RetVal) return true; if (RetVal > CS.RetVal) return false; if (Callee < CS.Callee) return true; @@ -419,7 +417,7 @@ public: } bool operator==(const DSCallSite &CS) const { - return Inst == CS.Inst && RetVal == CS.RetVal && Callee == CS.Callee && + return RetVal == CS.RetVal && Callee == CS.Callee && CallArgs == CS.CallArgs; } };