diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2011-08-03 21:06:02 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2011-08-03 21:06:02 +0000 |
commit | 30a49e93e3d45e4f4511387ce74bc0e00b7a4870 (patch) | |
tree | 80557998e81b2e98bfb95015618d729ecfd1d854 /llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | |
parent | 16fc2cc9fa18eb20f77695a09e1548cafa6c3e79 (diff) | |
download | llvm-30a49e93e3d45e4f4511387ce74bc0e00b7a4870.zip llvm-30a49e93e3d45e4f4511387ce74bc0e00b7a4870.tar.gz llvm-30a49e93e3d45e4f4511387ce74bc0e00b7a4870.tar.bz2 |
New approach to r136737: insert the necessary fences for atomic ops in platform-independent code, since a bunch of platforms (ARM, Mips, PPC, Alpha are the relevant targets here) need to do essentially the same thing.
I think this completes the basic CodeGen for atomicrmw and cmpxchg.
llvm-svn: 136813
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 335eca7..49b0f1b 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -617,6 +617,7 @@ TargetLowering::TargetLowering(const TargetMachine &tm, PrefLoopAlignment = 0; MinStackArgumentAlignment = 1; ShouldFoldAtomicFences = false; + InsertFencesForAtomic = false; InitLibcallNames(LibcallRoutineNames); InitCmpLibcallCCs(CmpLibcallCCs); |