[PATCH] D19515: [PGO] Prohibit the recording the function address if it's internal and COMDAT.

Rong Xu via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 25 17:22:39 PDT 2016


xur added a comment.

repost the .ll file:

a.ll:

  target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  target triple = "x86_64-unknown-linux-gnu"
  
  $_Z3foov = comdat any
  
  @fp1 = global i32 ()* @_Z3foov, align 8
  
  define internal i32 @_Z3foov() comdat {
  entry:
    ret i32 1
  }`

b.ll:

  target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
  target triple = "x86_64-unknown-linux-gnu"
  
  $_Z3foov = comdat any
  
  @fp2 = global i32 ()* @_Z3foov, align 8
  
  define internal i32 @_Z3foov() comdat {
  entry:
    ret i32 1
  }




http://reviews.llvm.org/D19515





More information about the llvm-commits mailing list