[PATCH] D47986: [CostModel] Treat Identity shuffle masks as zero cost

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 9 13:36:36 PDT 2018


RKSimon created this revision.
RKSimon added reviewers: efriedma, ABataev, delena, craig.topper, dtemirbulatov, mkuper, spatel, javed.absar.

As discussed on https://reviews.llvm.org/D47985, identity shuffle masks should probably be free.

I've limited this to the case where the input and output types all match - but we could probably accept all cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D47986

Files:
  lib/Analysis/TargetTransformInfo.cpp
  test/Analysis/CostModel/X86/reduction.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47986.150634.patch
Type: text/x-patch
Size: 66469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180609/4298bcae/attachment.bin>


More information about the llvm-commits mailing list