make comparisons a bist faster
authorGabor Greif <ggreif@gmail.com>
Sat, 17 Jan 2009 19:03:45 +0000 (19:03 +0000)
committerGabor Greif <ggreif@gmail.com>
Sat, 17 Jan 2009 19:03:45 +0000 (19:03 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@62428 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/CallSite.h

index 16d862fae546c5dda778f3895300938cc1110ee0..520f8de79fb5b8162eade689af1df64fba4f3d59 100644 (file)
@@ -43,11 +43,9 @@ public:
   CallSite(const CallSite &CS) : I(CS.I) {}
   CallSite &operator=(const CallSite &CS) { I = CS.I; return *this; }
 
-  bool operator==(const CallSite &CS) const { return getInstruction()
-                                                == CS.getInstruction(); }
-  bool operator!=(const CallSite &CS) const { return getInstruction()
-                                                != CS.getInstruction(); }
-  
+  bool operator==(const CallSite &CS) const { return I == CS.I; }
+  bool operator!=(const CallSite &CS) const { return I != CS.I; }
+
   /// CallSite::get - This static method is sort of like a constructor.  It will
   /// create an appropriate call site for a Call or Invoke instruction, but it
   /// can also create a null initialized CallSite object for something which is