[llvm-commits] [llvm] r45620 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

Chris Lattner clattner at apple.com
Sat Jan 5 00:28:14 PST 2008


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



More information about the llvm-commits mailing list