Skip to content

SVE instruction SUB not emitted #155928

@Nicoshev

Description

@Nicoshev

clang does not use SVE's 'sub' in this example: https://godbolt.org/z/f71f98a8s

It does use add, mul and even subr.

I've been told LLVM middleend normalizes sub x, 1 to add x, -1; then AArch64 backend is not aware that it could transform it back to sub x, 1 before pattern matching

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions