[llvm] [llvm-exegesis] Let ArrayRef infer the array size (NFC) (PR #88241)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 10 00:50:58 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-tools-llvm-exegesis
Author: Kazu Hirata (kazutakahirata)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/88241.diff
1 Files Affected:
- (modified) llvm/tools/llvm-exegesis/lib/X86/Target.cpp (+2-4)
``````````diff
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 {
``````````
</details>
https://github.com/llvm/llvm-project/pull/88241
More information about the llvm-commits
mailing list