[PATCH] D130466: [LICM] - Add option to allow data races

Shubham Narlawar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 29 00:16:24 PDT 2022


gsocshubham updated this revision to Diff 463767.
gsocshubham added a comment.

Use below testcase for capture case - test/Transforms/LICM/promote-sink-store-capture.ll

  void f(int n, int u) {
      for (int i = 0, x = u; i < n; ++i) {
      x = i;
      }
  }

instead of -

  void f(int a[restrict], int n, int u) {
      for (int i = 0; i < n; ++i) {
      int x = u;
          if (a[i]) {
              ++x;
              break;
          }
          ++x;
      }
  }


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D130466/new/

https://reviews.llvm.org/D130466

Files:
  llvm/include/llvm/Analysis/TargetTransformInfo.h
  llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
  llvm/include/llvm/CodeGen/BasicTTIImpl.h
  llvm/include/llvm/Transforms/Utils/LoopUtils.h
  llvm/lib/Analysis/TargetTransformInfo.cpp
  llvm/lib/Transforms/Scalar/LICM.cpp
  llvm/test/Transforms/LICM/promote-sink-store-arg.ll
  llvm/test/Transforms/LICM/promote-sink-store-capture.ll
  llvm/test/Transforms/LICM/promote-sink-store-constant-global.ll
  llvm/test/Transforms/LICM/promote-sink-store-global.ll
  llvm/test/Transforms/LICM/promote-sink-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130466.463767.patch
Type: text/x-patch
Size: 39043 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220929/e91b8551/attachment.bin>


More information about the llvm-commits mailing list