[LICM] Separate check for writability and thread-safety (NFCI)
authorNikita Popov <npopov@redhat.com>
Mon, 5 Sep 2022 07:39:59 +0000 (09:39 +0200)
committerNikita Popov <npopov@redhat.com>
Mon, 5 Sep 2022 07:43:17 +0000 (09:43 +0200)
commit388b684354cc71bd4043ddccbcfd91fb338d8b1e
treeba6ebfcfd062f68aa9523a851f8618f83f15159a
parent898c421975ed36b99ec2047589384539bd29a40b
[LICM] Separate check for writability and thread-safety (NFCI)

This used a single check to make sure that the object is both
writable and thread-local. Separate them out to make the
deficiencies in the current code more obvious.
llvm/lib/Transforms/Scalar/LICM.cpp