[PATCH] D114826: [memprof] Align each rawprofile section to 8b.
Teresa Johnson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 30 16:27:36 PST 2021
tejohnson added inline comments.
================
Comment at: compiler-rt/lib/memprof/memprof_rawprofile.cpp:35
+// Returns the size rounded up to 8b.
+u64 alignedSize(const u64 Size) { return Size + Size % 8; }
} // namespace
----------------
Should this be Size + 8 - Size%8?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D114826/new/
https://reviews.llvm.org/D114826
More information about the llvm-commits
mailing list