[PATCH] D67345: [InstCombine] Allow values with multiple users in SimplifyDemandedVectorElts

Piotr Sobczak via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 9 03:46:49 PDT 2019


piotr created this revision.
Herald added subscribers: llvm-commits, nhaehnle, jvesely.
Herald added a project: LLVM.

Allow for ignoring the check for a single use in SimplifyDemandedVectorElts
to be able to simplify operands if DemandedElts is known to contain
the union of elements used by all users.
It is a responsibility of a caller of SimplifyDemandedVectorElts to
supply correct DemandedElts.

Simplify a series of extractelement instructions if only a subset of
elements is used.


Repository:
  rL LLVM

https://reviews.llvm.org/D67345

Files:
  lib/Transforms/InstCombine/InstCombineInternal.h
  lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  lib/Transforms/InstCombine/InstCombineVectorOps.cpp
  test/Transforms/InstCombine/AMDGPU/amdgcn-demanded-vector-elts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D67345.219309.patch
Type: text/x-patch
Size: 7508 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190909/434ba07d/attachment.bin>


More information about the llvm-commits mailing list