[compiler-rt] 45e1a38 - [PGO] use -fprofile-update=atomic instead of mllvm option in ContinuousSyncMode/set-file-object.c

Wael Yehia via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 30 18:03:07 PDT 2024


Author: Wael Yehia
Date: 2024-10-01T01:14:34Z
New Revision: 45e1a38a10371b3ccf2a2199a0c16c6112751a3d

URL: https://github.com/llvm/llvm-project/commit/45e1a38a10371b3ccf2a2199a0c16c6112751a3d
DIFF: https://github.com/llvm/llvm-project/commit/45e1a38a10371b3ccf2a2199a0c16c6112751a3d.diff

LOG: [PGO] use -fprofile-update=atomic instead of mllvm option in ContinuousSyncMode/set-file-object.c

because on some platforms (e.g. AIX) the compiler adds -latomic to the link step in 32-bit.

Added: 
    

Modified: 
    compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c b/compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c
index c7eb27057a9236..321a69b4f23d0c 100644
--- a/compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c
+++ b/compiler-rt/test/profile/ContinuousSyncMode/set-file-object.c
@@ -5,7 +5,7 @@
 // RUN: rm -rf %t.dir && mkdir -p %t.dir && cd %t.dir
 
 // The -mllvm -runtime-counter-relocation=true flag has effect only on linux.
-// RUN: %clang -fprofile-instr-generate -fcoverage-mapping -mllvm -instrprof-atomic-counter-update-all=1 -mllvm -runtime-counter-relocation=true -o main.exe %s
+// RUN: %clang -fprofile-instr-generate -fcoverage-mapping -fprofile-update=atomic -mllvm -runtime-counter-relocation=true -o main.exe %s
 
 // Test continuous mode with __llvm_profile_set_file_object with mergin disabled.
 // RUN: env LLVM_PROFILE_FILE="%t.dir/profdir/%c%mprofraw.old" %run  %t.dir/main.exe nomerge %t.dir/profdir/profraw.new 2>&1 | FileCheck %s -check-prefix=WARN


        


More information about the llvm-commits mailing list