aboutsummaryrefslogtreecommitdiff
path: root/clang/test/CodeGen/attr-no-tail.c
diff options
context:
space:
mode:
authorJuneyoung Lee <aqjune@gmail.com>2021-11-06 15:34:49 +0900
committerJuneyoung Lee <aqjune@gmail.com>2021-11-06 15:36:42 +0900
commit7584ef766a7219b6ee5a400637206d26e0fa98ac (patch)
treeb7bf3b5b2205448833c25a3b511f6695d4627c0a /clang/test/CodeGen/attr-no-tail.c
parent1ab9a2906e19cca87cafac25cc31231a36de4843 (diff)
downloadllvm-7584ef766a7219b6ee5a400637206d26e0fa98ac.zip
llvm-7584ef766a7219b6ee5a400637206d26e0fa98ac.tar.gz
llvm-7584ef766a7219b6ee5a400637206d26e0fa98ac.tar.bz2
[Clang/Test]: Rename enable_noundef_analysis to disable-noundef-analysis and turn it off by default
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
Diffstat (limited to 'clang/test/CodeGen/attr-no-tail.c')
-rw-r--r--clang/test/CodeGen/attr-no-tail.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/clang/test/CodeGen/attr-no-tail.c b/clang/test/CodeGen/attr-no-tail.c
index 1c9aca6..ced6ce6 100644
--- a/clang/test/CodeGen/attr-no-tail.c
+++ b/clang/test/CodeGen/attr-no-tail.c
@@ -1,14 +1,14 @@
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.0 %s -emit-llvm -o - | FileCheck %s
-// CHECK: %{{[a-z0-9]+}} = notail call i32 @callee0(i32 %
-// CHECK: %{{[a-z0-9]+}} = notail call i32 @callee1(i32 %
+// CHECK: %{{[a-z0-9]+}} = notail call i32 @callee0(i32 noundef %
+// CHECK: %{{[a-z0-9]+}} = notail call i32 @callee1(i32 noundef %
// Check that indirect calls do not have the notail marker.
// CHECK: store i32 (i32)* @callee1, i32 (i32)** [[ALLOCA1:%[A-Za-z0-9]+]], align 8
// CHECK: [[INDIRFUNC:%[0-9]+]] = load i32 (i32)*, i32 (i32)** [[ALLOCA1]], align 8
-// CHECK: %{{[a-z0-9]+}} = call i32 [[INDIRFUNC]](i32 %{{[0-9]+}}
+// CHECK: %{{[a-z0-9]+}} = call i32 [[INDIRFUNC]](i32 noundef %{{[0-9]+}}
-// CHECK: %{{[a-z0-9]+}} = call i32 @callee2(i32 %
+// CHECK: %{{[a-z0-9]+}} = call i32 @callee2(i32 noundef %
int callee0(int a) __attribute__((not_tail_called)) {
return a + 1;