summaryrefslogtreecommitdiffstats
path: root/contrib/llvm/lib/Transforms/Utils/IntegerDivision.cpp
diff options
context:
space:
mode:
authorkib <kib@FreeBSD.org>2014-12-08 16:27:43 +0000
committerkib <kib@FreeBSD.org>2014-12-08 16:27:43 +0000
commit6ad3754659359384a6f7030c01d6028cfb5b3566 (patch)
treea4f602720dceed3701d711911e0dbe3afa187145 /contrib/llvm/lib/Transforms/Utils/IntegerDivision.cpp
parent042604e2ce8f6158efea05cb62c32a8b8310060f (diff)
downloadFreeBSD-src-6ad3754659359384a6f7030c01d6028cfb5b3566.zip
FreeBSD-src-6ad3754659359384a6f7030c01d6028cfb5b3566.tar.gz
Do some refactoring and minor cleanups of the thread_single() code in
preparation for the global stop commit. Move the code to weed suspended or sleeping threads into the appropriate state, into the helper weed_inhib(). Current code already has deep nesting and hard to follow [1]. Add currently useless helper remain_for_mode(), which returns the count of threads which are allowed to run, according to the single-threading mode. In thread_single_end(), do not save curthread into local variable, it is unused after, except to find curproc. Remove stray empty line. Requested by: avg [1] Tested by: pho Sponsored by: The FreeBSD Foundation MFC after: 1 week
Diffstat (limited to 'contrib/llvm/lib/Transforms/Utils/IntegerDivision.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud