Skip to content

[X86] LowerShiftByScalarImmediate - move shl(x,1) -> add(freeze(x),freeze(x)) to X86FixupInstTunings #161006

@RKSimon

Description

@RKSimon

Avoid the shl(x,1) -> add(freeze(x),freeze(x)) if the shift-imm is legal, and leave it to X86FixupInstTunings.

Helps avoid missed optimisations due to oneuse limits, avoids unnecessary freezes and allows AVX512 to fold to mi memory folding variants

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions