[llvm-commits] CVS: llvm-www/OpenProjects.html

Rafael Espindola espindola at google.com
Tue Jun 16 11:47:43 PDT 2009


> That should also be simplified as well.  the testcase in the example
> works because you know that "if *f is 0, that f is not null".

But we don't need __builtin_unreachable for that, do we? Can

void g(char);
int test(char *f) {
   g (*f);
   return f ? 1 : 0;
}

be simplified to "return 1"?

> -Chris

Cheers,
-- 
Rafael Avila de Espindola

Google | Gordon House | Barrow Street | Dublin 4 | Ireland
Registered in Dublin, Ireland | Registration Number: 368047




More information about the llvm-commits mailing list