replace a conditional branch with unconditional branch

Hi all,

How can replace a conditional branch with unconditional branch?

Hi Rahil,

How can replace a conditional branch with unconditional branch?

the simplest way is to replace the condition operand with the appropriate
constant (true or false). Other passes will then clean it up for you.

Ciao, Duncan.