-
Notifications
You must be signed in to change notification settings - Fork 15.3k
[CodeGen][NPM] Port VirtRegRewriter to NPM #130564
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1502,6 +1502,19 @@ Expected<bool> parseMachineBlockPlacementPassOptions(StringRef Params) { | |
| inconvertibleErrorCode()); | ||
| } | ||
| return AllowTailMerge; | ||
| }; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. extra semicolon here causes a build failure
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. on it |
||
|
|
||
| Expected<bool> parseVirtRegRewriterPassOptions(StringRef Params) { | ||
| bool ClearVirtRegs = true; | ||
| if (!Params.empty()) { | ||
| ClearVirtRegs = !Params.consume_front("no-"); | ||
| if (Params != "clear-vregs") | ||
| return make_error<StringError>( | ||
| formatv("invalid VirtRegRewriter pass parameter '{0}' ", Params) | ||
| .str(), | ||
| inconvertibleErrorCode()); | ||
| } | ||
| return ClearVirtRegs; | ||
| } | ||
|
|
||
| } // namespace | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,6 +2,10 @@ | |||||
| # RUN: -start-before=greedy,0 -stop-after=virtregrewriter,0 -pass-remarks='.*' -pass-remarks-output=%t.yaml -o /dev/null %s | ||||||
| # RUN: FileCheck %s < %t.yaml | ||||||
|
|
||||||
| # RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 \ | ||||||
| # RUN: -passes='greedy<sgpr>,virt-reg-rewriter<no-clear-vregs>' -pass-remarks='.*' -pass-remarks-output=%t.yaml -o /dev/null %s | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| # RUN: FileCheck %s < %t.yaml | ||||||
|
|
||||||
| # CHECK: Name: SpillReloadCopies | ||||||
| # CHECK-NEXT: Function: func | ||||||
| # CHECK-NEXT: Args: | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unused ID here causes a build failure