On Jan 4, 2008, at 11:21 PM, Bill Wendling wrote: > On Jan 4, 2008, at 11:02 PM, Chris Lattner wrote: >> You aren't looking for loads *from the global*, you're looking for >> loads from the *stub for the global*, which are always invariant. >> You >> just need to know whether the load is from a global or from its stub. >> > Okay. I just don't know how to check that it's a load from a *stub* > for the global. :-)
I am not 100% sure, but I think that X86Subtarget::GVRequiresExtraLoad is the place to start looking. -Chris _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits