[PATCH] D37463: Fix miscompile in LoopSink pass

Daniil Suchkov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 5 21:31:37 PDT 2017


DaniilSuchkov added a comment.

In https://reviews.llvm.org/D37463#861162, @danielcdh wrote:

> - not sure why SafetyInfo would help identify the potential data race here


>From comment to canSinkOrHoistInst:

  /// If SafetyInfo is null, we are checking for sinking instructions from
  /// preheader to loop body (no speculation).

So I'm just checking if we are going to sink load //into// loop.


Repository:
  rL LLVM

https://reviews.llvm.org/D37463





More information about the llvm-commits mailing list