Remove always_inline attribute - it wasn't affecting codegen

This commit is contained in:
2024-08-08 10:44:54 -07:00
parent 1d9e8ab68b
commit ac98d4a443
+3 -7
View File
@@ -2104,13 +2104,9 @@ bool scan16(const InternalVersionT *vs, const uint8_t *is, int begin, int end,
} }
// Returns true if v[i] <= readVersion for all i such that begin <= i < end // Returns true if v[i] <= readVersion for all i such that begin <= i < end
//
// always_inline So that we can optimize when begin or end is a constant.
// gcovr exclude annotation necessary because of always_inline?
template <bool kAVX512> template <bool kAVX512>
inline __attribute__((always_inline)) bool bool scan16(const InternalVersionT *vs, int begin, int end,
scan16(const InternalVersionT *vs, int begin, int end, // GCOVR_EXCL_LINE InternalVersionT readVersion) {
InternalVersionT readVersion) { // GCOVR_EXCL_LINE
assert(0 <= begin && begin < 16); assert(0 <= begin && begin < 16);
assert(0 <= end && end <= 16); assert(0 <= end && end <= 16);
assert(begin <= end); assert(begin <= end);
@@ -2873,7 +2869,7 @@ bool checkRangeRead(Node *n, std::span<const uint8_t> begin,
template __attribute__((target("avx512f"))) bool template __attribute__((target("avx512f"))) bool
scan16<true>(const InternalVersionT *vs, const uint8_t *is, int begin, int end, scan16<true>(const InternalVersionT *vs, const uint8_t *is, int begin, int end,
InternalVersionT readVersion); InternalVersionT readVersion);
template __attribute__((always_inline, target("avx512f"))) bool template __attribute__((target("avx512f"))) bool
scan16<true>(const InternalVersionT *vs, int begin, int end, scan16<true>(const InternalVersionT *vs, int begin, int end,
InternalVersionT readVersion); InternalVersionT readVersion);
template __attribute__((target("avx512f"))) bool template __attribute__((target("avx512f"))) bool