[LLVMdev] is createCFGSimplificationPass unused?
Rafael EspĂndola
rafael.espindola at gmail.com
Fri Nov 3 02:36:46 PST 2006
> > Maybe llvm-gcc should run CFGSimplification. It would then compile "if
> > (a) return 0; else return 1" into
> >
> > %tmp = seteq int %a, 0
> > %tmp1 = select bool %tmp, int 0, int 1
> > ret int %tmp1
>
> Yep, it definitely does. Make sure you're using llvm-gcc4 and passing -O2
> or higher.
Strange. I have run it now on my desktop, and it produces very good
code. I believe that the copy of llvm-gcc that I have in the laptop is
very old. I will check that latter.
> -Chris
Thanks,
Rafael
More information about the llvm-dev
mailing list