Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Analysis] Add cost model for experimental.cttz.elts intrinsic #90720

Merged
merged 2 commits into from
May 9, 2024

Commits on May 1, 2024

  1. [Analysis] Add cost model for experimental.cttz.elts intrinsic

    In PR llvm#88385 I've added support for auto-vectorisation of some
    early exit loops, which requires using the experimental.cttz.elts
    to calculate final indices in the early exit block. We need a
    more accurate cost model for this intrinsic to better reflect the
    cost of work required in the early exit block. I've tried to
    accurately represent the expansion code for the intrinsic when
    the target does not have efficient lowering for it. It's quite
    tricky to model because you need to first figure out what types
    will actually be used in the expansion. The type used can have
    a significant effect on the cost if you end up using illegal
    vector types.
    
    Tests added here:
    
      Analysis/CostModel/AArch64/cttz_elts.ll
      Analysis/CostModel/RISCV/cttz_elts.ll
    david-arm committed May 1, 2024
    Configuration menu
    Copy the full SHA
    47d3d13 View commit details
    Browse the repository at this point in the history

Commits on May 7, 2024

  1. Add more test cases for RISCV

    * Added tests for <vscale x 64 x i1> and <vscale x 128 x i1> types.
    david-arm committed May 7, 2024
    Configuration menu
    Copy the full SHA
    005b5f1 View commit details
    Browse the repository at this point in the history