Skip to content

Conversation

@deeply
Copy link
Contributor

@deeply deeply commented Sep 30, 2022

Static var initialization is guaranteed to be called once by c++11 standard. Maybe we can remove some call_once usages for simplicity (and maybe small perf gain).

@deeply deeply requested a review from tanyokwok September 30, 2022 08:46
// clang-format off

const std::unordered_set<std::string> &GetTorchMlirWhiteList() {
static std::unordered_set<std::string> white_list = CreateTorchMlirWhiteList();
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Could you please link the c++ 11 standard doc reference?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please refer to this SO answer or C++11 standard 6.7

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.


Shen Li seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants