[compiler-rt] r253687 - Speculatively fix MIPS build bot failures

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 20 10:31:45 PST 2015


Author: davidxl
Date: Fri Nov 20 12:31:45 2015
New Revision: 253687

URL: http://llvm.org/viewvc/llvm-project?rev=253687&view=rev
Log:
Speculatively fix MIPS build bot failures

MIPS build bots failed due to lack of 64bit atomic operations.
The fix is to disable VP for MIPS target until a better solution
is found.

Modified:
    compiler-rt/trunk/lib/profile/InstrProfiling.c

Modified: compiler-rt/trunk/lib/profile/InstrProfiling.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/profile/InstrProfiling.c?rev=253687&r1=253686&r2=253687&view=diff
==============================================================================
--- compiler-rt/trunk/lib/profile/InstrProfiling.c (original)
+++ compiler-rt/trunk/lib/profile/InstrProfiling.c Fri Nov 20 12:31:45 2015
@@ -74,6 +74,14 @@ __attribute__((visibility("hidden"))) vo
 /* Total number of value profile data in bytes. */
 static uint64_t TotalValueDataSize = 0;
 
+#ifdef _MIPS_ARCH
+__attribute__((visibility("hidden"))) void
+__llvm_profile_instrument_target(uint64_t TargetValue, void *Data_,
+                                 uint32_t CounterIndex) {
+}
+
+#else
+
 /* Allocate an array that holds the pointers to the linked lists of
  * value profile counter nodes. The number of element of the array
  * is the total number of value profile sites instrumented. Returns
@@ -156,6 +164,7 @@ __llvm_profile_instrument_target(uint64_
   __sync_fetch_and_add(&TotalValueDataSize,
                        Success * sizeof(__llvm_profile_value_data));
 }
+#endif
 
 __attribute__((visibility("hidden"))) uint64_t
 __llvm_profile_gather_value_data(uint8_t **VDataArray) {




More information about the llvm-commits mailing list