mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-25 22:16: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
11 lines
258 B
C++
11 lines
258 B
C++
// RUN: %clang_cc1 -emit-llvm -o - -triple arm-none-linux-gnueabi %s | FileCheck %s
|
|
|
|
extern int foo(float x);
|
|
extern int foo(double x);
|
|
|
|
__fp16 a;
|
|
|
|
// CHECK: call noundef i32 @_Z3foof
|
|
// CHECK-NOT: call noundef i32 @_Z3food
|
|
int bar (void) { return foo(a); }
|