Two callsites are equivalent even if they are from two completely different
authorChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 02:09:03 +0000 (02:09 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 21 Oct 2002 02:09:03 +0000 (02:09 +0000)
call instructions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4241 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DSGraph.h
include/llvm/Analysis/DataStructure/DSGraph.h

index f07b69e4cee3f3e76aad2f64f9e79ac1243092b5..f1b01e7438a327b26d4509247c4d74845df3f599 100644 (file)
@@ -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;
   }
 };
index f07b69e4cee3f3e76aad2f64f9e79ac1243092b5..f1b01e7438a327b26d4509247c4d74845df3f599 100644 (file)
@@ -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;
   }
 };