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

Dan Gohman gohman at apple.com
Thu Aug 27 15:40:11 PDT 2009


On Aug 27, 2009, at 2:25 PM, Eli Friedman wrote:


> On Thu, Aug 27, 2009 at 10:55 AM, Dan Gohman<gohman at apple.com> wrote:
>
>> Author: djg
>>
>> Date: Thu Aug 27 12:55:13 2009
>>
>> New Revision: 80265
>>
>>
>>
>> URL: http://llvm.org/viewvc/llvm-project?rev=80265&view=rev
>>
>> Log:
>>
>> Teach getUnderlyingObject and skipPointerCasts about GlobalAliases.
>>
>
> 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?

Dan




More information about the llvm-commits mailing list