[llvm] 3a28177 - [llvm-exegesis] Let ArrayRef infer the array size (NFC) (#88241)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 11 19:48:02 PDT 2024


Author: Kazu Hirata
Date: 2024-04-11T19:47:58-07:00
New Revision: 3a2817749eb8a2210320aa551fa20a5f9c8c32e3

URL: https://github.com/llvm/llvm-project/commit/3a2817749eb8a2210320aa551fa20a5f9c8c32e3
DIFF: https://github.com/llvm/llvm-project/commit/3a2817749eb8a2210320aa551fa20a5f9c8c32e3.diff

LOG: [llvm-exegesis] Let ArrayRef infer the array size (NFC) (#88241)

Added: 
    

Modified: 
    llvm/tools/llvm-exegesis/lib/X86/Target.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/tools/llvm-exegesis/lib/X86/Target.cpp b/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
index 31bec2545926b6..dbb2bf409316e7 100644
--- a/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
+++ b/llvm/tools/llvm-exegesis/lib/X86/Target.cpp
@@ -769,11 +769,9 @@ class ExegesisX86Target : public ExegesisTarget {
 
   ArrayRef<unsigned> getUnavailableRegisters() const override {
     if (DisableUpperSSERegisters)
-      return ArrayRef(kUnavailableRegistersSSE,
-                      sizeof(kUnavailableRegistersSSE) /
-                          sizeof(kUnavailableRegistersSSE[0]));
+      return ArrayRef(kUnavailableRegistersSSE);
 
-    return ArrayRef(kUnavailableRegisters, std::size(kUnavailableRegisters));
+    return ArrayRef(kUnavailableRegisters);
   }
 
   bool allowAsBackToBack(const Instruction &Instr) const override {


        


More information about the llvm-commits mailing list