[clang] [TBAA] Emit int TBAA metadata on FP math libcall expf (PR #96025)

via cfe-commits cfe-commits at lists.llvm.org
Mon Jul 15 22:09:26 PDT 2024


================
@@ -0,0 +1,43 @@
+// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 5
+// The test may fail as time out on windows
+// REQUIRES: system-linux
+
+// RUN:  %clang -S -O3 -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefixes=CHECK,NoNewStructPathTBAA
+// RUN:  %clang -S -O3 -Xclang -new-struct-path-tbaa -emit-llvm -o - -x c++ %s | FileCheck %s -check-prefixes=CHECK,NewStructPathTBAA
+
----------------
vfdff wrote:

Thanks @zahiraam very much.
Yes, I expected tbaa metada at the call of expf with the PR. so this checking line don't include the  tbaa metada because you have not rebuild the clang with the PR ? 
 > CHECK-NEXT:    [[CALL:%.*]] = tail call float @expf(float noundef [[TMP0]]) #[[ATTR2:[0-9]+]]

https://github.com/llvm/llvm-project/pull/96025


More information about the cfe-commits mailing list