[LLVMdev] Question to Chris

Seung Jae Lee lee225 at uiuc.edu
Mon Feb 4 13:29:13 PST 2008


I appreciate your suggestions, some follow-up questions though....

>1) LLVM has the capabilities to do everything that you are trying to  
>re-implement.
>2) Have you looked at the C backend? It recreates loops. It may not  
>create "for" loops but you can hack on it to do that.

I wonder if you mean "goto elimination technique" by Ana Maria Erosa ( http://citeseer.ist.psu.edu/317208.html ) for this?

>3) The way you are converting out of SSA is wrong. You will suffer  
>from lost copies. You should look at using demotePHI(). see include/ 
>llvm/Transforms/Utils/Local.h

I use LLVM 1.9 where I can't find demotePHI(). Is it a function available at later versions?

>4) LLVM will  compute your trip counts for you, use LoopInfo. You  
>need to be in SSA form to do this.
>
>-Tanya
>

Do you mean -loops pass, right?

Thank you in advance.

Best regards,
Seung



More information about the llvm-dev mailing list