Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AArch64: Use b.cond instead of cbz/cbnz when all register are used up #5737

Merged
merged 1 commit into from
Jan 6, 2021

Commits on Jan 6, 2021

  1. AArch64: Use b.cond instead of cbz/cbnz when all register are used up

    `ificmpeq` and its variant nodes have 3 children and the third child is
    `GlRegDeps` whose children are `aRegLoad`/`iRegLoad`/`PassThrough` of global registers.
    In some cases, `GlRegDeps` node uses all the allocatable integer registers.
    If this happens, we cannot use `cbz`/`cbnz` instruction for branch
    because `cbz`/`cbnz` requires a register in addition to those global registers.
    This commit changes `ificmpHelper` to use `b.cond` instruction for that case.
    
    Signed-off-by: Akira Saitoh <saiaki@jp.ibm.com>
    Akira Saitoh committed Jan 6, 2021
    Configuration menu
    Copy the full SHA
    833b00a View commit details
    Browse the repository at this point in the history