commit | 700f7026c8c9843695ed556592e67eeb8962b18d | [log] [tgz] |
---|---|---|
author | David Majnemer <david.majnemer@gmail.com> | Fri Jul 08 16:39:00 2016 +0000 |
committer | David Majnemer <david.majnemer@gmail.com> | Fri Jul 08 16:39:00 2016 +0000 |
tree | 0bc33df6a46a7922c7f143394a66f41a5f49b919 | |
parent | a3314a57196716cf0fdd6aa57449c70b65ae8dd7 [diff] |
[CodeGen, TargetPassConfig] Remove a race from createRegAllocPass The createRegAllocPass reads and writes to a global variable 'Registry' via calls to getDefault and setDefault. Run this under a call_once to avoid races. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274875 91177308-0d34-0410-b5e6-96231b3b80d8