[all-commits] [llvm/llvm-project] b8424e: [llvm-profdata] Make tests more readable (NFC)
Kazu Hirata via All-commits
all-commits at lists.llvm.org
Tue Dec 26 23:31:36 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b8424eaede5fffc222b1a3afbd1aa4102f6d0b08
https://github.com/llvm/llvm-project/commit/b8424eaede5fffc222b1a3afbd1aa4102f6d0b08
Author: Kazu Hirata <kazu at google.com>
Date: 2023-12-26 (Tue, 26 Dec 2023)
Changed paths:
M llvm/test/tools/llvm-profdata/raw-32-bits-be.test
M llvm/test/tools/llvm-profdata/raw-32-bits-le.test
Log Message:
-----------
[llvm-profdata] Make tests more readable (NFC)
These tests generally use one printf for each field of
RawInstrProf::ProfileData except the lines being touched in this
patch. These lines print two fields, namely NumValueSites and
NumBitmapBytes, with one printf, which is very confusing. (Note that
the 4-byte printf at the end of the group is padding to make the
struct size a multiple of 8 bytes.)
This patch makes the tests a litle more readable by splitting
NumValueSites and NumBitmapBytes into two separate lines.
More information about the All-commits
mailing list