Skip to content

Push 2025 04 26#945

Merged
rdementi merged 8 commits intomasterfrom
push-2025-04-26
Apr 27, 2025
Merged

Push 2025 04 26#945
rdementi merged 8 commits intomasterfrom
push-2025-04-26

Conversation

@rdementi
Copy link
Copy Markdown
Contributor

No description provided.

Change-Id: Ic17f7e26da0318a308d79bbea8022f744a7e362f
llvm/llvm-project#60896

Change-Id: I914b654c53a2e134ce219ce634dc94ded9353a20
fixes #939

Change-Id: I01cefe96c5a1dbd6d6058b78579e737565d7f7a5
Change-Id: I06c8085b4ce0f59fd9ee4d24392a7a912c86639b
Change-Id: I1d575f50a333855402063eff45405e7a19c1bac9
@rdementi rdementi requested a review from Copilot April 27, 2025 07:50
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR introduces a few updates: a guard condition was added in the dashboard code to ensure proper loop execution, a clang analyzer exclusion was applied to avoid false positives in CPU counters, and the CI workflow was updated to use the newer scan-build-18 command.

  • Updated dashboard loop condition to check for valid UPI links.
  • Wrapped a section in cpucounters.cpp with a clang analyzer guard.
  • Modified CI configuration to use scan-build-18.

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/dashboard.cpp Added an extra condition in the for loop to check NumUPILinksPerSocket.
src/cpucounters.cpp Added preprocessor guards to exclude code during clang analysis.
.github/workflows/ci-clang-scan.yml Updated the scan-build command to scan-build-18.

Comment on lines +806 to 808
for (size_t s = 0; s < NumSockets && NumUPILinksPerSocket > 0; ++s)
{
const auto S = std::to_string(s);
Copy link

Copilot AI Apr 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The additional check '&& NumUPILinksPerSocket > 0' in the loop condition may cause the loop to be skipped entirely if NumUPILinksPerSocket is 0. To improve clarity and avoid potential unintended behavior, consider verifying NumUPILinksPerSocket before entering the loop.

Suggested change
for (size_t s = 0; s < NumSockets && NumUPILinksPerSocket > 0; ++s)
{
const auto S = std::to_string(s);
if (NumUPILinksPerSocket > 0)
{
for (size_t s = 0; s < NumSockets; ++s)
{
const auto S = std::to_string(s);

Copilot uses AI. Check for mistakes.
@rdementi rdementi merged commit 1388f45 into master Apr 27, 2025
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants