[llvm-commits] [cfe-commits] [PATCH][RFC] PR10367: don't allow GlobalAlias's aliasee to be an arbitrary Constant

Duncan Sands baldrick at free.fr
Sat Jul 30 05:49:28 PDT 2011


>> This patch looks great to me Jay, thanks!
>
> I will check it in after all then, if there are no more objections in
> the next couple of days.

Since we have to accept bitcasts and geps of globals as alias operands,
is there any point in allowing the result type to be different to the
operand type?  If we decide that it is better to allow them to differ,
I reckon we should add a small optimization somewhere that removes any
bitcasts/geps on alias operands.

Ciao, Duncan.



More information about the llvm-commits mailing list