Skip to content

[X86] Use AVX512 BROADCAST from GPR to materialize uniform vector constants #239963

Open

Description

@RKSimon

AVX512F provides VPBROADCASTD/Q and AVX512BW provides VPBROADCASTB/W - FP constants could be handled from bitcast integers. If we don't have VLX we'd need to always broadcast to ZMM.

We might be better off attempting other vector only patterns first, to avoid GPR->FPU traffic - much of it depends on how much register pressure we have.

Activity

  1. added theissue type on Nov 7, 2026
  2. llvmorg-github-actions commented on Nov 7, 2026

    @llvmorg-github-actions

    @llvm/issue-subscribers-backend-x86

    Author: Simon Pilgrim (RKSimon)

    Details AVX512F provides VPBROADCASTD/Q and AVX512BW provides VPBROADCASTB/W - FP constants could be handled from bitcast integers. If we don't have VLX we'd need to always broadcast to ZMM.

    We might be better off attempting other vector only patterns first, to avoid GPR->FPU traffic - much of it depends on how much register pressure we have.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions