Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Minimize internal braching #2

Open
mumbel opened this issue Jun 13, 2020 · 0 comments
Open

Minimize internal braching #2

mumbel opened this issue Jun 13, 2020 · 0 comments

Comments

@mumbel
Copy link

mumbel commented Jun 13, 2020

For example:

if ((!Pu_9_8[0, 1])) goto <if_Pu_9_8_0_1>;

You may get better SLEIGH compilation (better PCODE) if you minimize internal branching and opt for the next instruction instead.

This could be rewritten with something like:

    if ((Pu_9_8[0, 1])) goto inst_next;
    Rd_4_0 = (Rs_20_16 << 16);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant