[llvm-dev] PHI inst has two exact the same operands?
Xiaochu Liu via llvm-dev
llvm-dev at lists.llvm.org
Wed Mar 30 20:12:00 PDT 2016
Dear there,
Is the following phi instruction valid?
%j_8 = phi i32 [ %j_100, %"<bb 13>" ], [ %j_9133, %"<bb 10>" ], [
%j_9133, %"<bb 9>" ]
Variable %j_9133 is in bb 9.
And also this one:
%D.1898_8.i = phi i32 [ %D.1898_27.i, %"<bb 18>.i" ], [ -1, %"<bb 23>" ],
[ %D.1776_193, %"<bb 4>], [ %D.1776_193, %"<bb 4>], [ %l_5.lcssa.i,
%"<bb 17>.i" ]
It has two identical operands.
Are they valid llvm instructions? I am hacking a infrastructure which
generates these IR. I was wondering if I should make my tool support
this or somehow manage to resolve this situation.
Thanks,
Xiaochu
More information about the llvm-dev
mailing list