Demanded elements support for vector GEPs
authorPhilip Reames <listmail@philipreames.com>
Mon, 28 Jan 2019 23:24:49 +0000 (23:24 +0000)
committerPhilip Reames <listmail@philipreames.com>
Mon, 28 Jan 2019 23:24:49 +0000 (23:24 +0000)
commit6c5341bc5a127d967944d1ae64c643efe44e96ff
treeb1b26a536290c7f1680ac9c90caa51289131619b
parentf0e676819fae4687f783e62b245a14ad8f9bb12a
Demanded elements support for vector GEPs

GEPs can produce either scalar or vector results. If we're extracting only a subset of the vector lanes, simplifying the operands is helpful in eliminating redundant computation, and (eventually) allowing further optimizations

Differential Revision: https://reviews.llvm.org/D57177

llvm-svn: 352440
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/vec_demanded_elts.ll