]> granicus.if.org Git - llvm/commit
[InlineCost, NFC] Extract code dealing with inbounds GEPs from visitGetElementPtr...
authorEvgeny Astigeevich <evgeny.astigeevich@arm.com>
Tue, 3 Oct 2017 12:00:40 +0000 (12:00 +0000)
committerEvgeny Astigeevich <evgeny.astigeevich@arm.com>
Tue, 3 Oct 2017 12:00:40 +0000 (12:00 +0000)
commit7bd839f42ba5100cd48dead581fdcad9523d0dee
tree6ba8ba64d38b0f3c804f93344de581a40ff74a7a
parent7fa3570b3badb93f0c7989b52d720a918e15454d
[InlineCost, NFC] Extract code dealing with inbounds GEPs from visitGetElementPtr into a function

The code responsible for analysis of inbounds GEPs is extracted into a separate
function: CallAnalyzer::canFoldInboundsGEP. With the patch SROA
enabling/disabling code is localized at one place instead of spreading across
the code of CallAnalyzer::visitGetElementPtr.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314787 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InlineCost.cpp