[all-commits] [llvm/llvm-project] bd0109: [CostModel][X86] Move AVX512/AVX2 uniform shift co...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Mon Sep 12 04:19:52 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bd0109f39243e12f494e53bc99e95d76a1585ef8
      https://github.com/llvm/llvm-project/commit/bd0109f39243e12f494e53bc99e95d76a1585ef8
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-09-12 (Mon, 12 Sep 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/vshift-ashr-cost-inseltpoison.ll
    M llvm/test/Analysis/CostModel/X86/vshift-ashr-cost.ll

  Log Message:
  -----------
  [CostModel][X86] Move AVX512/AVX2 uniform shift costs into the generic uniform cost tables

They shouldn't be happening after XOP shift costs - AVX2 shift supports takes preference over XOP for everything but vXi8 shifts - the improvement is pretty limited as it only affects bdver4 targets but it does help clean up a fraction of the messy shift cost logic....




More information about the All-commits mailing list