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
16 lines
301 B
Common Lisp
16 lines
301 B
Common Lisp
// RUN: %clang_cc1 -emit-llvm -o - -triple amdgcn %s | FileCheck %s
|
|
|
|
struct A {
|
|
int x[100];
|
|
};
|
|
|
|
int f(struct A a);
|
|
|
|
int g() {
|
|
struct A a;
|
|
// CHECK: call i32 @f(%struct.A addrspace(5)* noundef byval{{.*}}%a)
|
|
return f(a);
|
|
}
|
|
|
|
// CHECK: declare i32 @f(%struct.A addrspace(5)* noundef byval{{.*}})
|