]> granicus.if.org Git - llvm/commit
[SeparateConstOffsetFromGEP] Allow SeparateConstOffsetFromGEP pass to lower GEPs.
authorHao Liu <Hao.Liu@arm.com>
Wed, 19 Nov 2014 06:24:44 +0000 (06:24 +0000)
committerHao Liu <Hao.Liu@arm.com>
Wed, 19 Nov 2014 06:24:44 +0000 (06:24 +0000)
commiteb52f383c2db7735e30049bbfca899b24ad49324
tree0d9fa03286d79cbbeca28a1a8556c218009277c4
parent1d4f28c6bc55701d0f4d476cd81c1bd959f22745
[SeparateConstOffsetFromGEP] Allow SeparateConstOffsetFromGEP pass to lower GEPs.
If LowerGEP is enabled, it can lower a GEP with multiple indices into GEPs with a single index
or arithmetic operations. Lowering GEPs can always extract structure indices. Lowering GEPs can
also give use more optimization opportunities. It can benefit passes like CSE, LICM and CGP.

Reviewed in http://reviews.llvm.org/D5864

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@222328 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Scalar.h
lib/Transforms/Scalar/SeparateConstOffsetFromGEP.cpp