Skip to content

[AArch64][SVE] Fold svrev(svrev(v)) to v #110444

Open
@k-arrows

Description

@k-arrows

GCC has implemented this (see patch). Consider the following example.
https://godbolt.org/z/xj86nKn51

#include <arm_sve.h>

svint32_t f(svint32_t v)
{
  return svrev_s32 (svrev_s32 (v));
}

GCC:

f(__SVInt32_t):
        ret

Clang:

f(__SVInt32_t):
        rev     z0.s, z0.s
        rev     z0.s, z0.s
        ret

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions