OSDN Git Service

[NFCI][SCEV] getPointerBase(): de-recursify
authorRoman Lebedev <lebedev.ri@gmail.com>
Sat, 27 Jun 2020 08:34:58 +0000 (11:34 +0300)
committerRoman Lebedev <lebedev.ri@gmail.com>
Sat, 27 Jun 2020 08:37:17 +0000 (11:37 +0300)
commitf9f52c88cafb11952a20eaa6d3b6cb2fcc79bbf9
tree19073ca46b99436d79247c6e21be31af9fde99f9
parentf4aaed3bf16b3c07152c7a47d1a363a8267ebcf1
[NFCI][SCEV] getPointerBase(): de-recursify

Summary:
This is boringly straight-forward, each iteration we see if
V is some expression that we can look into, and if it has
a single pointer operand, then set V to that operand
and repeat.

Reviewers: efriedma, mkazantsev, reames, nikic

Reviewed By: nikic

Subscribers: hiraditya, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D82632
llvm/lib/Analysis/ScalarEvolution.cpp