On Jan 4, 2008, at 10:59 PM, Bill Wendling wrote:

> On Jan 4, 2008, at 10:49 PM, Evan Cheng wrote:
>> Although, isReallySideEffectFree looks wrong. How is this checked?
>> ...
>> Bill, how are you checking the Global address isn't redefined  
>> anywhere else?
>>
> How would you suggest I check that?

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.

-Chris 
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to