Skip to content

Conversation

@kunalspathak
Copy link
Contributor

Follow up to the fix I made in #91854.

Fixes: #91972

@ghost ghost added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Sep 15, 2023
@ghost ghost assigned kunalspathak Sep 15, 2023
@ghost
Copy link

ghost commented Sep 15, 2023

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Issue Details

Follow up to the fix I made in #91854.

Fixes: #91972

Author: kunalspathak
Assignees: -
Labels:

area-CodeGen-coreclr

Milestone: -

@kunalspathak
Copy link
Contributor Author

@dotnet/jit-contrib @BruceForstall

char buffer[50];
sprintf_s(buffer, 50, "loop block " FMT_BB " appears before top of loop",
char buffer[100];
sprintf_s(buffer, 80, "loop block " FMT_BB " appears before top of loop",
Copy link
Contributor

Choose a reason for hiding this comment

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

why is this 80 instead of 100? (or sizeof(buffer))?

unmarkedLoopAlign = true;
}
else if (visitedLoopNum[loopTop->bbNatLoopNum])
else if ((loopTop->bbNatLoopNum != BasicBlock::NOT_IN_LOOP) && (visitedLoopNum[loopTop->bbNatLoopNum]))
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't need so many parens

Suggested change
else if ((loopTop->bbNatLoopNum != BasicBlock::NOT_IN_LOOP) && (visitedLoopNum[loopTop->bbNatLoopNum]))
else if ((loopTop->bbNatLoopNum != BasicBlock::NOT_IN_LOOP) && visitedLoopNum[loopTop->bbNatLoopNum])

@kunalspathak kunalspathak merged commit fd20f42 into dotnet:main Sep 16, 2023
@kunalspathak kunalspathak deleted the issue_91972 branch September 16, 2023 06:40
@ghost ghost locked as resolved and limited conversation to collaborators Oct 16, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test failure: System.Memory.Tests

2 participants