<div dir="ltr"><div>Dear all,</div><div><br></div><div>Greetings.</div><div> I have been trying to generate SSA form using llvm. Note that I have subjected the following program (prog1.c) to llvm. <br></div><div><br></div><div>int fact(int b);<br>int main()<br>{<br>    int a, b;<br>    a = 6;<br>    if(a > 5)<br>    {<br>        b = 7;<br>    }<br>    else<br>    {<br>        b = 5;<br>    }<br>    fact(b);<br>    return 0;<br>}</div><div>Also I have executed the following commands.</div><div>clang -S -emit-llvm prog1.c -o prog1.ll</div><div>clang -c -emit-llvm prog1.c -o prog1.bc</div><div>opt -mem2reg prog1.bc -o prog1.opt.bc</div><div>llvm-dis prog1.opt.bc</div><div><br></div><div>The last step generates prog1.opt.ll. I did not find any difference between prog1.ll and prog1.opt.ll other than the names of the files.</div><div><br></div><div>Kindly help me in generating SSA using llvm.</div><div><br></div><div>Thanks,</div><div>Sudakshina<br></div></div>