[llvm-commits] [llvm-gcc-4.2] r74436 - /llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Owen Anderson resistor at mac.com
Mon Jun 29 11:07:30 PDT 2009


Author: resistor
Date: Mon Jun 29 13:07:26 2009
New Revision: 74436

URL: http://llvm.org/viewvc/llvm-project?rev=74436&view=rev
Log:
It's not readily clear to me whether the semantics of GCC atomics require 
a flush of cached memory, or of all memory, so let's err on the side of caution for now.

Modified:
    llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp

Modified: llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp?rev=74436&r1=74435&r2=74436&view=diff

==============================================================================
--- llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/llvm-convert.cpp Mon Jun 29 13:07:26 2009
@@ -4468,7 +4468,7 @@
   C[2] = ConstantInt::get(Type::Int1Ty, sl);
   C[3] = ConstantInt::get(Type::Int1Ty, ss);
   // We assume like gcc appears to, that this only applies to cached memory.
-  C[4] = ConstantInt::get(Type::Int1Ty, false);
+  C[4] = ConstantInt::get(Type::Int1Ty, true);
 
   Builder.CreateCall(Intrinsic::getDeclaration(TheModule,
                                                Intrinsic::memory_barrier),





More information about the llvm-commits mailing list