[llvm-commits] CVS: llvm-www/OpenProjects.html
Chris Lattner
clattner at apple.com
Tue Jun 16 12:59:35 PDT 2009
On Jun 16, 2009, at 11:47 AM, Rafael Espindola wrote:
>> 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"?
Yes, you're right. I'll fix the example, thanks!
-Chris
More information about the llvm-commits
mailing list