[PATCH] D28458: [CostModel] Improve detection of uniform operands

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jan 8 11:39:38 PST 2017


RKSimon created this revision.
RKSimon added reviewers: mkuper, spatel, andreadb.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

Currently we only match uniform operands against a broadcasted scalar, this patch adds support for matching a broadcasted vector value as well.

We still expect the operand to have come from an argument or global value.


Repository:
  rL LLVM

https://reviews.llvm.org/D28458

Files:
  lib/Analysis/CostModel.cpp
  test/Analysis/CostModel/X86/vshift-ashr-cost.ll
  test/Analysis/CostModel/X86/vshift-lshr-cost.ll
  test/Analysis/CostModel/X86/vshift-shl-cost.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28458.83569.patch
Type: text/x-patch
Size: 26796 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170108/2f2dfa61/attachment.bin>


More information about the llvm-commits mailing list