[LLVMdev] Transforming Loops

Marc Brünink marc at bruenink.de
Tue May 19 00:04:52 PDT 2009


Hi all,

I need to transform loops like this one
for (int i = b; i<e; ++i) buffer[i];

into loops like this one:
for(p=buffer+b; p<buffer+e; ++p) *p;

Does any pass already perform this? If there's none, I guess loop-reduce 
is a good starting point for me, isn't it?

Thanks
Marc



More information about the llvm-dev mailing list