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

Shubham Narlawar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Aug 9 01:59:58 PDT 2022


gsocshubham added a comment.

In D130466#3694507 <https://reviews.llvm.org/D130466#3694507>, @efriedma wrote:

> Can we make this work off the existing clang option -mthread-model=single?

`-mthread-model single` does not work for aarch64, sparc and I get below error without any change in the code -

`clang-15: error: invalid thread model 'single' in '-mthread-model single' for this target`

  Target: aarch64-unknown-linux-gnueabihf
  Thread model: posix



1. Since, `mthread-model single` is not supported for most of the architecture, can we keep `AllowDataRaces` as a separate flag independant from `mthread-model`?


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

https://reviews.llvm.org/D130466



More information about the llvm-commits mailing list