Displaying 2 results from an estimated 2 matches for "insertleadingf".
2014 Aug 15
2
[LLVMdev] Plan to optimize atomics in LLVM
...ease
> Which would make an execution ending in %old_x = %old_y = 0 possible, while
> it is impossible in the original program.
Hmm, evil. Well, I'm convinced. Thanks very much for taking the time
to come up with an example and telling us about it.
> Fixing it is a two line change in insertLeadingFence, but it triggers some
> test failures, both because of tests looking specifically for a fence
> release here,
That's fine, we can change those easily enough. And the "dmb ishst"
(as I understand it, it *is* a release fence, but not almost certainly
not suitable for preventi...
2014 Aug 08
6
[LLVMdev] Plan to optimize atomics in LLVM
> I am planning in doing in IR, but with target specific-passes (such as X86ExpandAtomicPass)
> that just share some of the code
This would more normally be done via target hooks in LLVM, though the
principle is sound.
> But it must be target-dependent as for example on Power a
> seq_cst store has a fence before it, while on ARM it has a fence
> both before and after it (per