Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

kotlarmilos
Copy link
Member

This PR expands compare + brfalse/brtrue with single conditional branch opcode.

@kotlarmilos kotlarmilos requested a review from BrzVlad as a code owner December 29, 2022 15:48
@kotlarmilos kotlarmilos self-assigned this Dec 29, 2022
@kotlarmilos kotlarmilos requested a review from vargaz as a code owner December 29, 2022 15:48
@kotlarmilos kotlarmilos added this to the 8.0.0 milestone Dec 29, 2022
@ghost
Copy link

ghost commented Dec 29, 2022

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

Issue Details

This PR expands compare + brfalse/brtrue with single conditional branch opcode.

Author: kotlarmilos
Assignees: kotlarmilos
Labels:

area-Codegen-Interpreter-mono

Milestone: -

@kotlarmilos kotlarmilos changed the title Expand compare + brfalse/brtrue with single conditional branch opcode [mono][interp] Expand compare + brfalse/brtrue with single conditional branch opcode Dec 29, 2022
@build-analysis build-analysis bot mentioned this pull request Dec 29, 2022
@kotlarmilos
Copy link
Member Author

Failure is #79874

int cond_sreg = ins->sregs [0];
InterpInst *def = td->locals [cond_sreg].def;
if (def != NULL) {
if (def != NULL && td->local_ref_count [cond_sreg] == 1) {
Copy link
Member

Choose a reason for hiding this comment

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

you could use local_ref_count directly as below

@kotlarmilos kotlarmilos merged commit 7fa0d5b into dotnet:main Jan 3, 2023
@kotlarmilos kotlarmilos deleted the improvement/conditional-branches branch January 3, 2023 15:01
@ghost ghost locked as resolved and limited conversation to collaborators Feb 2, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants