[PATCH] D100486: [COST]Improve cost model for shuffles in SLP.

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 29 07:30:24 PDT 2022


ABataev added a comment.

In D100486#3481545 <https://reviews.llvm.org/D100486#3481545>, @vdmitrie wrote:

> Hi Alexey. Here is another crash reproducer:
>
> ; bin/opt -mcpu=corei7-avx -passes="print<cost-model>" -S test.ll
>
> target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
> target triple = "x86_64-unknown-linux-gnu"
>
> define dso_local <12 x i64> @foo(<12 x i64> noundef %src) {
> entry:
>
>   %shuffle = shufflevector <12 x i64> %src, <12 x i64> poison, <12 x i32> <i32 0, i32 3, i32 6, i32 9, i32 1, i32 4, i32 7, i32 10, i32 2, i32 5, i32 8, i32 11>
>   ret <12 x i64> %shuffle
>
> }

Fixed in 371412e065a63107d5d79330da6757ff693d91cc <https://reviews.llvm.org/rG371412e065a63107d5d79330da6757ff693d91cc>


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D100486/new/

https://reviews.llvm.org/D100486



More information about the llvm-commits mailing list