diff options
author | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-11-15 10:47:35 +0100 |
---|---|---|
committer | Djordje Todorovic <djordje.todorovic@rt-rk.com> | 2019-11-15 11:10:19 +0100 |
commit | 1643734741d2f2957206774a50960ba335a36a0c (patch) | |
tree | d4c3a3ffd3a68a3103a0c202fecc543c7f2faf9d /clang/test/CodeGen/debug-info-param-modification.c | |
parent | 9e37892773c0954a15f84b011223da1e707ab3bf (diff) | |
download | bcm5719-llvm-1643734741d2f2957206774a50960ba335a36a0c.tar.gz bcm5719-llvm-1643734741d2f2957206774a50960ba335a36a0c.zip |
[clang] Remove the DIFlagArgumentNotModified debug info flag
It turns out that the ExprMutationAnalyzer can be very slow when AST
gets huge in some cases. The idea is to move this analysis to the LLVM
back-end level (more precisely, in the LiveDebugValues pass). The new
approach will remove the performance regression, simplify the
implementation and give us front-end independent implementation.
Differential Revision: https://reviews.llvm.org/D68206
Diffstat (limited to 'clang/test/CodeGen/debug-info-param-modification.c')
-rw-r--r-- | clang/test/CodeGen/debug-info-param-modification.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/clang/test/CodeGen/debug-info-param-modification.c b/clang/test/CodeGen/debug-info-param-modification.c deleted file mode 100644 index f0a13a3777d..00000000000 --- a/clang/test/CodeGen/debug-info-param-modification.c +++ /dev/null @@ -1,25 +0,0 @@ -// RUN: %clang -Xclang -femit-debug-entry-values -g -O2 -Xclang -disable-llvm-passes -S -target x86_64-none-linux-gnu -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-ENTRY-VAL-OPT -// RUN: %clang -Xclang -femit-debug-entry-values -g -O2 -Xclang -disable-llvm-passes -S -target arm-none-linux-gnu -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-ENTRY-VAL-OPT -// RUN: %clang -Xclang -femit-debug-entry-values -g -O2 -Xclang -disable-llvm-passes -S -target aarch64-none-linux-gnu -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-ENTRY-VAL-OPT -// RUN: %clang -Xclang -femit-debug-entry-values -g -O2 -Xclang -disable-llvm-passes -S -target armeb-none-linux-gnu -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-ENTRY-VAL-OPT - -// CHECK-ENTRY-VAL-OPT: !DILocalVariable(name: "a", arg: 1, scope: {{.*}}, file: {{.*}}, line: {{.*}}, type: {{.*}}) -// CHECK-ENTRY-VAL-OPT: !DILocalVariable(name: "b", arg: 2, scope: {{.*}}, file: {{.*}}, line: {{.*}}, type: {{.*}}, flags: DIFlagArgumentNotModified) -// -// For the os_log_helper: -// CHECK-ENTRY-VAL-OPT: !DILocalVariable(name: "buffer", arg: 1, {{.*}}, flags: DIFlagArtificial) -// -// RUN: %clang -g -O2 -Xclang -disable-llvm-passes -target x86_64-none-linux-gnu -S -emit-llvm %s -o - | FileCheck %s -// CHECK-NOT: !DILocalVariable(name: "b", arg: 2, scope: {{.*}}, file: {{.*}}, line: {{.*}}, type: {{.*}}, flags: DIFlagArgumentNotModified) -// -// For the os_log_helper: -// CHECK: !DILocalVariable(name: "buffer", arg: 1, {{.*}}, flags: DIFlagArtificial) - -int fn2 (int a, int b) { - ++a; - return b; -} - -void test_builtin_os_log(void *buf, int i, const char *data) { - __builtin_os_log_format(buf, "%d %{public}s %{private}.16P", i, data, data); -} |