On Apr 10, 2009, at 9:24 AM, aparna kotha wrote: > All: > > I am looking at a optimization which requires me to lower the > getelementptr instruction in llvm. Is there a way to do this in llvm > or do i have to write a new pass for this? Take a look at the EmitGEPOffset function in the instcombine pass. -Chris