rjmccall added inline comments.

================
Comment at: llvm/include/llvm/IR/InstrTypes.h:1863
+  /// not access or only reads memory.
+  bool doesNotReadThreadIDNorLivesInPresplitCoroutine() const {
+    return doesNoReadThreadID() || !getFunction() ||
----------------
rjmccall wrote:
> This is an odd use of "nor".  Maybe take a different approach — 
> `canReadDifferentThreadIDIfMoved()`?
Oh, I didn't notice this last night — `canReadDifferentThreadIDIfMoved` has the 
opposite sense of the old method, so either you need to negate the logic in the 
method and all its call sites, or you need to rename it something like 
`cannotReadDifferentThreadIDIfMoved`.


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

https://reviews.llvm.org/D132352

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to