@@ -321,35 +321,30 @@ impl<'mir, 'tcx: 'mir> StoreBuffer {
321
321
// CoWR: if a store happens-before the current load,
322
322
// then we can't read-from anything earlier in modification order.
323
323
// C++20 §6.9.2.2 [intro.races] paragraph 18
324
- log:: info!( "Stopping due to coherent write-read" ) ;
325
324
false
326
325
} else if store_elem. loads . borrow ( ) . iter ( ) . any ( |( & load_index, & load_timestamp) | {
327
326
load_timestamp <= clocks. clock [ load_index]
328
327
} ) {
329
328
// CoRR: if there was a load from this store which happened-before the current load,
330
329
// then we cannot read-from anything earlier in modification order.
331
330
// C++20 §6.9.2.2 [intro.races] paragraph 16
332
- log:: info!( "Stopping due to coherent read-read" ) ;
333
331
false
334
332
} else if store_elem. timestamp <= clocks. fence_seqcst [ store_elem. store_index ] {
335
333
// The current load, which may be sequenced-after an SC fence, cannot read-before
336
334
// the last store sequenced-before an SC fence in another thread.
337
335
// C++17 §32.4 [atomics.order] paragraph 6
338
- log:: info!( "Stopping due to coherent load sequenced after sc fence" ) ;
339
336
false
340
337
} else if store_elem. timestamp <= clocks. write_seqcst [ store_elem. store_index ]
341
338
&& store_elem. is_seqcst
342
339
{
343
340
// The current non-SC load, which may be sequenced-after an SC fence,
344
341
// cannot read-before the last SC store executed before the fence.
345
342
// C++17 §32.4 [atomics.order] paragraph 4
346
- log:: info!( "Stopping due to needing to load from the last SC store" ) ;
347
343
false
348
344
} else if is_seqcst && store_elem. timestamp <= clocks. read_seqcst [ store_elem. store_index ] {
349
345
// The current SC load cannot read-before the last store sequenced-before
350
346
// the last SC fence.
351
347
// C++17 §32.4 [atomics.order] paragraph 5
352
- log:: info!( "Stopping due to sc load needing to load from the last SC store before an SC fence" ) ;
353
348
false
354
349
} else { true } ;
355
350
0 commit comments