[llvm-commits] [llvm] r45620 - /llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
sabre at nondot.org
Fri Jan 4 23:02:52 PST 2008
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.
More information about the llvm-commits