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

Zahira Ammarguellat via cfe-commits cfe-commits at lists.llvm.org
Tue Jul 16 05:29:39 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
+
----------------
zahiraam wrote:

Yes, you are right I didn't notice that. Sorry. There is no TBAA on the `expf` call. But there should be since I uploaded your entire patch! I don't understand why the `extern C` would make any difference. Furthermore, I ran the LIT test with it. 

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


More information about the cfe-commits mailing list