[PATCH] D77421: [WPD] Avoid noalias assumptions in unique return value optimization

Bob Haarman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 6 11:25:41 PDT 2020


inglorion added a comment.

@tejohnson: The defs look like

  @__typeid__ZTS4Base_16_unique_member = hidden alias i8, getelementptr (i8, i8* bitcast ({ [6 x i8*] }* @_ZTV7Derived to i8*), i64 16)
  @__typeid__ZTS4Base_24_unique_member = hidden alias i8, getelementptr (i8, i8* bitcast ({ [6 x i8*] }* @_ZTV7Derived to i8*), i64 16)

So they are both aliases to the same vtable.

These are code generated into the split LTO object that is linked in in the final link step, where they show up as hidden global object, with the same value for each.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D77421/new/

https://reviews.llvm.org/D77421





More information about the llvm-commits mailing list