[LLVMdev] Using results of Value Numbering in llvm

Chris Lattner clattner at apple.com
Tue Mar 24 08:33:30 PDT 2009


On Mar 23, 2009, at 7:11 PM, bhavani krishnan wrote:

>
> Hi,
>
> I need to use Value Numbering in my optimization pass. I dont see  
> this being used by any other passes. Please let me know which passes  
> to include in addRequired and how to getAnalysis for value  
> numbering. addRequired<GVN> doesn't seem to work.
> Any help is appreciated!

The GVN pass combines the analysis and optimization into one pass.  If  
you want to use just the analysis, you'll have to refactor the GVN  
pass or steal code out of it.

-Chris



More information about the llvm-dev mailing list