[all-commits] [llvm/llvm-project] bbe911: [ProfileData] Sink the length checks (#95559)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Fri Jun 14 09:21:39 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: bbe9119d9cb37662faafe7fe273e792b1b70145e
https://github.com/llvm/llvm-project/commit/bbe9119d9cb37662faafe7fe273e792b1b70145e
Author: Kazu Hirata <kazu at google.com>
Date: 2024-06-14 (Fri, 14 Jun 2024)
Changed paths:
M llvm/unittests/ProfileData/InstrProfTest.cpp
Log Message:
-----------
[ProfileData] Sink the length checks (#95559)
The new API getValueArrayForSite returns ArrayRef<InstrProfValueData>,
packaging the array length and contents together.
This patch sinks the array length checks just before we check the
contents. This way, we check both the array length and contents
immediately after calling getValueArrayForSite.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list