[llvm-commits] [llvm] r80265 - /llvm/trunk/lib/VMCore/Value.cpp

Duncan Sands baldrick at free.fr
Fri Aug 28 00:20:12 PDT 2009


Hi Dan,

>> Shouldn't a alias constant-fold to the pointed-to global if it can't
>> be overridden?
> 
> Right now only GlobalOpt does this, and not everyone uses
> GlobalOpt. I could be convinced that Instcombine should
> do this though. Does anyone have a strong opinion?

can't the constant folder do it, much like it removes pointless bitcasts
of globals (or rather, of their addresses)?

Ciao,

Duncan.

PS: Don't listen to that Chris guy - what does he know?!



More information about the llvm-commits mailing list