[all-commits] [llvm/llvm-project] 371412: [COST]Fix crash for non-power-2 vector shuffle mask.

Andrew V. Tischenko via All-commits all-commits at lists.llvm.org
Fri Apr 29 07:29:51 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 371412e065a63107d5d79330da6757ff693d91cc
      https://github.com/llvm/llvm-project/commit/371412e065a63107d5d79330da6757ff693d91cc
  Author: Alexey Bataev <a.bataev at outlook.com>
  Date:   2022-04-29 (Fri, 29 Apr 2022)

  Changed paths:
    M llvm/lib/Target/X86/X86TargetTransformInfo.cpp
    M llvm/test/Analysis/CostModel/X86/shuffle-non-pow-2.ll

  Log Message:
  -----------
  [COST]Fix crash for non-power-2 vector shuffle mask.

Need to normalizize the mask to avoid possible crashes during attempts
to estimate cost of the very long shuffles with non-power-2 number of
elements in masks.




More information about the All-commits mailing list