[LLVMdev] Unnatural loops with O0
Chris Lattner
clattner at apple.com
Wed Feb 11 16:51:34 PST 2009
On Feb 11, 2009, at 1:13 PM, Marc de Kruijf wrote:
> I am reviving this thread because I am seeing the same thing
> (unnatural loops produced by llvm-gcc), but it is not limited to -O0
> -- I am seeing it for -O2 and -O3 as well.
> Some of my research work is relying on LoopInfo to provide loop
> information for all loops, but it is missing these loops. Is there
> any work in the pipeline that aims to fix this?
Not that I know of. There has been a project on the open projects
list to write a pass that converts all loops to natural loops (through
code duplication). That would be a nice and self-contained project if
anyone is interested.
-Chris
More information about the llvm-dev
mailing list