brintos

brintos / llvm-project-archived public Read only

0
0
Text · 633 B · cd80d96 Raw
18 lines · plain
1## Check for the replacement of calls to identical functions.2 3REQUIRES: system-linux4 5RUN: %clangxx %p/Inputs/bolt_icf.cpp -g -Wl,-q -o %t.exe6RUN: llvm-bolt %t.exe --relocs -o %t --icf 2>&1 | FileCheck %s7RUN: llvm-nm -n %t | FileCheck %s -check-prefix=CHECK-SYM8 9CHECK: BOLT-INFO: ICF folded [[#]] out of [[#]] functions in [[#]] passes.10 11# Check that symbols are updated correctly in the symbol table12CHECK-SYM-DAG: [[#%x,FIZ:]] T _Z3fizv13CHECK-SYM-DAG: [[#FIZ]]     T _Z3fazv14CHECK-SYM-DAG: [[#%x,ZIP:]] T _Z3zipv15CHECK-SYM-DAG: [[#ZIP]]     T _Z3zapv16CHECK-SYM-DAG: [[#%x,FOO:]] T _Z3foov17CHECK-SYM-DAG: [[#FOO]]     T _Z3barv18