Nov 2024

2 commits
Fix __attribute__((target(...))) usage.
7 Nov 2024Nathan Bossartmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% surelanded as postedfrom patchset #171

The diff matches #171, correcting target-option quoting in config/c-compiler.m4, configure, meson.build, and src/port/pg_popcount_avx512.c.

Use __attribute__((target(...))) for AVX-512 support.
7 Nov 2024Nathan Bossartmaster18beta1REL_19_STABLE18beta1REL_18_STABLE18beta1
LLM analysis, 100% suremodified before commitlight changesfrom patchset #1671 of 2 reviewers saw the final version

Matches #167 except for two added comment lines in src/include/c.h explaining that individual targets still require configure checks, requested in #168.

  • Raghuveer Devulapallisaw an earlier versiontrailerHe tested and approved #159, reported MSVC issues, and approved #164 in #165, before the generic compiler-support guards changed.
  • Andres Freundsaw the final versiontrailerHe reviewed #167 in #168 and requested the configure-check documentation incorporated into the commit.

Apr 2024

1 commit
Fix code for probing availability of AVX-512.
23 Apr 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #1411 of 2 reviewers saw the final version

Exactly matches #141: src/port/pg_popcount_avx512_choose.c checks OSXSAVE, requires all XCR0 bits in 0xe6, and orders the checks through helper functions.

  • Akash Shankaransaw an earlier versiontrailerHe verified the OSXSAVE requirement and recommended detection ordering in #137, before the expanded XCR0 checks and helper refactoring.
  • Raghuveer Devulapallisaw the final versiontrailerHe caught the reversed comparison and duplicate CPUID calls in #140 and confirmed the final extension-dependency assumptions in #142.

Mar - Apr 2024

6 commits
Optimize visibilitymap_count() with AVX-512 instructions.
7 Apr 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #130

Takes the second patch from #130, adding pg_popcount_masked() and updating visibilitymap_count(); differences within that patch are comment corrections. Nathan is the sender and an author, with Ants credited as coauthor.

Optimize pg_popcount() with AVX-512 instructions.
7 Apr 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #1303 of 7 reviewers saw the final version

Takes the first patch from #130, including compiler/runtime detection and the aligned masked-load kernel, with comment edits only. Nathan authored the final integration, with Paul Amonson and Ants Aasma credited as coauthors.

  • Matthias van de Meentsaw an earlier versiontrailerHe questioned throttling and realistic small-buffer performance of the original inline proposal #1 in #2, before any attached AVX-512 patchset.
  • Tom Lanesaw the final versiontrailerBesides earlier dispatch and inline-function feedback, he investigated the landed implementation's Coverity warning in #132 and resolved it as a GCC-header issue in #135.
  • Noah Mischsaw an earlier versiontrailerHe evaluated the original dispatch problem and proposed ifunc and CPU-specific binaries in #5 and #7, before attached AVX-512 implementations existed.
  • Akash Shankaransaw an earlier versiontrailerHe explained XGETBV and instruction-support dependencies in #91, before the later compiler-check and masked-load redesigns.
  • Alvaro Herrerasaw an earlier versiontrailerHe reviewed configuration and dispatch, identified scalar-tail call overhead in #101, and supported small-buffer inlining in #109, before the aligned masked-load redesign.
  • Andres Freundsaw the final versiontrailerAfter his early compiler-flag isolation review, he examined the landed configure/Meson probes and MSVC behavior in #145, motivating the later target-attribute series.
  • David Rowleysaw the final versiontrailerHe reviewed performance and API choices, then questioned and experimentally checked masked-load safety in #127 and #129, after which only light changes followed.
Inline pg_popcount() for small buffers.
3 Apr 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetmoderate changesfrom patchset #1150 of 2 reviewers saw the final version

Takes the first patch from #115, but changes the unconditional eight-byte cutoff in src/include/port/pg_bitutils.h to eight bytes on 64-bit systems and four on 32-bit systems.

  • Alvaro Herrerasaw an earlier versiontrailerHe endorsed the inline proposal accompanying #108 in #109, before its implementation and architecture-specific thresholds were finalized.
  • Tom Lanesaw an earlier versiontrailerHe replaced the macro proposal accompanying #108 with an inline function in #110 to prevent double evaluation, before the thresholds changed.
Avoid function call overhead of pg_popcount() in syslogger.c.
2 Apr 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #106

Exactly takes the second patch from #106, replacing the single-byte pg_popcount() call in src/backend/postmaster/syslogger.c with pg_number_of_ones[dest_flags].

Refactor code for setting pg_popcount* function pointers.
2 Apr 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surepart of a posted patchsetlight changesfrom patchset #1061 of 1 reviewer saw the final version

Exactly takes the first patch from #106, extracting choose_popcount_functions() in src/port/pg_bitutils.c. The commit explicitly credits Paul Amonson, identifiable through #14, although Nathan sent the series.

  • Nathan Bossartsaw the final versioncommittercommitted the patch
Inline pg_popcount{32,64} into pg_popcount().
19 Mar 2024Nathan Bossartmaster17beta1REL_19_STABLE17beta1REL_18_STABLE17beta1REL_17_STABLE17beta1
LLM analysis, 100% surelanded as postedfrom patchset #631 of 1 reviewer saw the final version

The diff matches #63, introducing runtime-selected buffer implementations and inlining scalar popcount operations in src/port/pg_bitutils.c.

  • David Rowleysaw the final versiontrailerHe benchmarked #56, requested its 32-bit path in #57, and explicitly approved #63 in #64.

Credits across 9 commits

Author
Nathan BossartLLM6
Paul Amonson1
Reviewer
Alvaro Herrera2
Andres Freund2
David Rowley2
Devulapalli, Raghuveer2
Shankaran, Akash2
Tom Lane2
Matthias van de Meent1
Nathan Bossartcommitter1
Noah Misch1
Reported by
Andrew Kane1
Co author
Ants Aasma2
Paul Amonson1
Committer
Nathan Bossart9

N LLM means N of the credits come from LLM analysis, not from commit trailers.