[LLVMdev] replace a conditional branch with unconditional branch

Duncan Sands baldrick at free.fr
Wed Jan 4 04:10:26 PST 2012


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.



More information about the llvm-dev mailing list