@@ -321,35 +321,30 @@ impl<'mir, 'tcx: 'mir> StoreBuffer {
321321 // CoWR: if a store happens-before the current load,
322322 // then we can't read-from anything earlier in modification order.
323323 // C++20 §6.9.2.2 [intro.races] paragraph 18
324- log:: info!( "Stopping due to coherent write-read" ) ;
325324 false
326325 } else if store_elem. loads . borrow ( ) . iter ( ) . any ( |( & load_index, & load_timestamp) | {
327326 load_timestamp <= clocks. clock [ load_index]
328327 } ) {
329328 // CoRR: if there was a load from this store which happened-before the current load,
330329 // then we cannot read-from anything earlier in modification order.
331330 // C++20 §6.9.2.2 [intro.races] paragraph 16
332- log:: info!( "Stopping due to coherent read-read" ) ;
333331 false
334332 } else if store_elem. timestamp <= clocks. fence_seqcst [ store_elem. store_index ] {
335333 // The current load, which may be sequenced-after an SC fence, cannot read-before
336334 // the last store sequenced-before an SC fence in another thread.
337335 // C++17 §32.4 [atomics.order] paragraph 6
338- log:: info!( "Stopping due to coherent load sequenced after sc fence" ) ;
339336 false
340337 } else if store_elem. timestamp <= clocks. write_seqcst [ store_elem. store_index ]
341338 && store_elem. is_seqcst
342339 {
343340 // The current non-SC load, which may be sequenced-after an SC fence,
344341 // cannot read-before the last SC store executed before the fence.
345342 // C++17 §32.4 [atomics.order] paragraph 4
346- log:: info!( "Stopping due to needing to load from the last SC store" ) ;
347343 false
348344 } else if is_seqcst && store_elem. timestamp <= clocks. read_seqcst [ store_elem. store_index ] {
349345 // The current SC load cannot read-before the last store sequenced-before
350346 // the last SC fence.
351347 // 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" ) ;
353348 false
354349 } else { true } ;
355350
0 commit comments