[llvm] 5a81d0e - [AArch64] Remove dead isReflexive methods. NFC

David Green via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 14 09:58:33 PST 2023


Author: David Green
Date: 2023-02-14T17:58:28Z
New Revision: 5a81d0eea40a7eb3632c49edc66e066b6a57e9b0

URL: https://github.com/llvm/llvm-project/commit/5a81d0eea40a7eb3632c49edc66e066b6a57e9b0
DIFF: https://github.com/llvm/llvm-project/commit/5a81d0eea40a7eb3632c49edc66e066b6a57e9b0.diff

LOG: [AArch64] Remove dead isReflexive methods. NFC

These were added in 71f0ec242f348e7d2298 but never used.

Added: 
    

Modified: 
    llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
index 313ba3df49301..eb73a556daa59 100644
--- a/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
+++ b/llvm/lib/Target/AArch64/Utils/AArch64BaseInfo.h
@@ -332,40 +332,6 @@ inline static unsigned getNZCVToSatisfyCondCode(CondCode Code) {
   }
 }
 
-/// Return true if Code is a reflexive relationship:
-/// forall x. (CSET Code (CMP x x)) == 1
-inline static bool isReflexive(CondCode Code) {
-  switch (Code) {
-  case EQ:
-  case HS:
-  case PL:
-  case LS:
-  case GE:
-  case LE:
-  case AL:
-  case NV:
-    return true;
-  default:
-    return false;
-  }
-}
-
-/// Return true if Code is an irreflexive relationship:
-/// forall x. (CSET Code (CMP x x)) == 0
-inline static bool isIrreflexive(CondCode Code) {
-  switch (Code) {
-  case NE:
-  case LO:
-  case MI:
-  case HI:
-  case LT:
-  case GT:
-    return true;
-  default:
-    return false;
-  }
-}
-
 } // end namespace AArch64CC
 
 struct SysAlias {


        


More information about the llvm-commits mailing list