[LLVMdev] opt -std-compile-opts breaks tail calls

Jon Harrop jon at ffconsultancy.com
Fri Nov 13 11:09:53 PST 2009


On Friday 13 November 2009 19:00:12 Dan Gohman wrote:
> On Nov 13, 2009, at 9:07 AM, Jon Harrop wrote:
> > I'll try removing the noalias and seeing if that fixes it. If so, I'll
> > file a bug report. Which part of LLVM would this be a bug in if things
> > like noalias and noreturn inhibit TCO when they shouldn't?
>
> CodeGen. I looked at noalias, and it was indeed a bug. This is now
> fixed on trunk in r88672. Noreturn is a different issue.

Thanks: I tested it and removing noalias did indeed fix that stack overflow. 
Unfortunately, the generated code is still broken in some other way that is 
causing a segfault. I'll keep digging...

-- 
Dr Jon Harrop, Flying Frog Consultancy Ltd.
http://www.ffconsultancy.com/?e



More information about the llvm-dev mailing list