-
Notifications
You must be signed in to change notification settings - Fork 5.6k
LSRA-throughput: Iterate over the regMaskTP instead all registers #87424
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 7 commits
18bb1cb
70813e3
b9fd5eb
40de6c0
119cecd
014bcd6
e2b460a
19ec31c
7a7ca9a
181660a
2c599f4
1791121
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 |
|---|---|---|
|
|
@@ -25802,9 +25802,9 @@ regNumber GenTree::ExtractTempReg(regMaskTP mask /* = (regMaskTP)-1 */) | |
| { | ||
| regMaskTP availableSet = gtRsvdRegs & mask; | ||
| assert(genCountBits(availableSet) >= 1); | ||
| regMaskTP tempRegMask = genFindLowestBit(availableSet); | ||
| gtRsvdRegs &= ~tempRegMask; | ||
| return genRegNumFromMask(tempRegMask); | ||
| regNumber tempReg = genFirstRegNumFromMask(availableSet); | ||
| gtRsvdRegs ^= genRegMask(tempReg); | ||
|
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. Is this actually faster than the previous code? Since it needs to do either a left shift (on amd64) or memory lookup (non-amd64). The same question applies to all the places where you introduced It seems like you're saying The
Member
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.
|
||
| return tempReg; | ||
| } | ||
|
|
||
| //------------------------------------------------------------------------ | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.