[llvm-dev] PHI nodes and connected ICMp
Sanjoy Das via llvm-dev
llvm-dev at lists.llvm.org
Thu Aug 10 10:30:52 PDT 2017
Hi Anastasiya,
If you're looking for the exit value of a PHI node, please take a look
at what IndVarSimplify does here:
https://github.com/llvm-mirror/llvm/blob/master/lib/Transforms/Scalar/IndVarSimplify.cpp#L516
On Thu, Aug 10, 2017 at 12:55 AM, Anastasiya Ruzhanskaya
<anastasiya.ruzhanskaya at frtk.ru> wrote:
> By only two cases I mean , that in exiting block when computing the
> condition related to PHI node I can expect only icmp on one of incoming
> values or on phi node itself... I tried to come up with some more complex
> examples but I always receive only these two cases, that is why I am asking.
So you could have cases like this: https://godbolt.org/g/j4zcWy
-- Sanjoy
More information about the llvm-dev
mailing list