更新时间:2021-09-13 05:47:29
我还没有遇到这样的问题,但是我认为您的问题是if语句. %add
属于if.then
BasicBlock,不能从if.end
块访问.这就是为什么phi指令选择" %add
或%sub
可用的值的原因.因此,您必须将IcmpInst的%a.0
用作参数,而不是%add
.
I have not encountered such a problem jet but I think your problem is the if statement. %add
belonges to the if.then
BasicBlock and it is not accessable from the if.end
block. This is why the phi instruction "chooses" which value is available %add
or %sub
. So you have to take %a.0
for your IcmpInst as argument not %add
.