mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-30 01:06:05 +00:00

Turning on `enable_noundef_analysis` flag allows better codegen by removing freeze instructions. I modified clang by renaming `enable_noundef_analysis` flag to `disable-noundef-analysis` and turning it off by default. Test updates are made as a separate patch: D108453 Reviewed By: eugenis Differential Revision: https://reviews.llvm.org/D105169
13 lines
652 B
C++
13 lines
652 B
C++
// This test checks if a symbol gets mangled dwarf names with -fpseudo-probe-for-profiling option.
|
|
// RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -o - < %s | FileCheck %s --check-prefix=PLAIN
|
|
// RUN: %clang_cc1 -triple x86_64 -x c++ -S -emit-llvm -debug-info-kind=line-tables-only -fpseudo-probe-for-profiling -o - < %s | FileCheck %s --check-prefix=MANGLE
|
|
|
|
int foo() {
|
|
return 0;
|
|
}
|
|
|
|
// PLAIN: define dso_local noundef i32 @_Z3foov()
|
|
// PLAIN: distinct !DISubprogram(name: "foo", scope:
|
|
// MANGLE: define dso_local noundef i32 @_Z3foov()
|
|
// MANGLE: distinct !DISubprogram(name: "foo", linkageName: "_Z3foov"
|