Skip to content

[AArch64][GlobalISel] Improve divide by constant #118090

Open
@davemgreen

Description

@davemgreen

SDAG has some improved code generation for expanding sdiv/udiv by a constant, avoiding the need for expensive sdiv/udiv operations and scalarization of vector types. We should look into improving the same capability in GISel.

Scalar: https://godbolt.org/z/W817YfWxW
Vector: https://godbolt.org/z/c9ME7Eqc4

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions