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

Issue 642 - the cover rate of passes #643

Merged
merged 17 commits into from
Mar 5, 2023
Merged

Issue 642 - the cover rate of passes #643

merged 17 commits into from
Mar 5, 2023

Conversation

PeiMu
Copy link
Collaborator

@PeiMu PeiMu commented Feb 15, 2023

address #642

Addresses #642.
@PeiMu PeiMu linked an issue Feb 15, 2023 that may be closed by this pull request
@PeiMu PeiMu self-assigned this Feb 15, 2023
@PeiMu PeiMu changed the title Issue 642 Issue 642 - the cover rate of passes Feb 16, 2023
@KomaGR KomaGR changed the base branch from master to issue-644 February 24, 2023 15:53
Copy link
Collaborator

@KomaGR KomaGR left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. Can you please make sure the code follows the coding conventions in https://github.com/phillipstanleymarbell/Noisy-lang-compiler/blob/master/README-CodingConventions.md ?

Comment on lines 116 to 117
if (isa<GetElementPtrInst>(llvmIrInstruction) && isa<Argument>(llvmIrInstruction->getOperand(0)))
break;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Please always use brackets in if statements, even if there is only one statement in the conditional branch. See coding conventions here: https://github.com/phillipstanleymarbell/Noisy-lang-compiler/blob/master/README-CodingConventions.md

Comment on lines 131 to 137
auto instType = llvmIrInstruction->getType();
auto typeId = instType->getTypeID();
if (typeId == Type::PointerTyID)
{
instType = instType->getPointerElementType();
typeId = instType->getTypeID();
}
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is indentation mismatched here?

src/newton/newton-irPass-LLVMIR-constantSubstitution.cpp Outdated Show resolved Hide resolved
@PeiMu PeiMu merged commit 37f066b into issue-644 Mar 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

the cover rate of the range analysis and optimization passes
2 participants