]> granicus.if.org Git - llvm/commit
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)
commit4a40330dd79c0672a63ca70ebe01342d8b37eb40
tree06cb4118d36fa4d4fb15cca22ab8a7b67c33f7e0
parent9276ecc42a8a0bd21bbf90368bab321d332450cd
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@352440 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
test/Transforms/InstCombine/vec_demanded_elts.ll