Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor getMaxBits() out of OptimizeInstructions and add beginnings of unit testing for it #3019

Merged
merged 2 commits into from
Aug 4, 2020

Conversation

kripken
Copy link
Member

@kripken kripken commented Aug 3, 2020

getMaxBits just moves around, no logic is changed.

Aside from adding getMaxBits, the change in bits.h is 99% whitespace.

helps #2879 cc @MaxGraey

@kripken kripken requested review from tlively and aheejin August 4, 2020 16:16
@tlively
Copy link
Member

tlively commented Aug 4, 2020

Did you mean to refer to a different PR/issue besides #3012?

@kripken
Copy link
Member Author

kripken commented Aug 4, 2020

Sorry, I think I meant #2879 (but the context there is not necessary to understand this PR).

compare(CostAnalyzer(&get).cost, 0);
}

int main() {
Copy link
Member

Choose a reason for hiding this comment

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

I wonder if it would be worth trying to set up a gtest integration here and starting to write more unit tests...

On the other hand, we don't really need yet another way to run tests 😭

@kripken kripken merged commit d78c794 into master Aug 4, 2020
@kripken kripken deleted the bits branch August 4, 2020 20:06
@MaxGraey
Copy link
Contributor

MaxGraey commented Aug 4, 2020

Thanks!

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.

3 participants