[PATCH] D151774: [LICM] Don't hoist threadlocals within presplit coroutines

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 5 00:04:12 PDT 2023


nikic added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LICM.cpp:1228
+    if (CI->onlyReadsMemory() && CI->getFunction()->isPresplitCoroutine())
+      return false;
+
----------------
Can you please move this to the existing Behavior check below?


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

https://reviews.llvm.org/D151774



More information about the llvm-commits mailing list