
This takes advantage of the implicit default behavior to reduce the number of attributes, which in turns reduces compilation time. I've observed -3% in instruction count when compiling sqlite3 amalgamation with -O0 Differential Revision: https://reviews.llvm.org/D96400
11 lines
337 B
Common Lisp
11 lines
337 B
Common Lisp
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=NORMAL
|
|
// RUN: %clang_cc1 %s -emit-llvm -cl-no-signed-zeros -o - | FileCheck %s -check-prefix=NO-SIGNED-ZEROS
|
|
|
|
float signedzeros(float a) {
|
|
return a;
|
|
}
|
|
|
|
// CHECK: attributes
|
|
// NORMAL-NOT: "no-signed-zeros-fp-math"
|
|
// NO-SIGNED-ZEROS: "no-signed-zeros-fp-math"="true"
|