Uh oh!
There was an error while loading. Please reload this page.
Don't force unused reg arg to the stack. - #44555
Conversation
CarolEidt
commented
Nov 12, 2020
@dotnet/jit-contrib PTAL
|
| } | ||
| else if (refType == RefTypeParamDef && varDsc->lvRefCntWtd() <= BB_UNITY_WEIGHT) | ||
| { | ||
| else if (refType == RefTypeParamDef && |
There was a problem hiding this comment.
Nit: would it be correct to write the condition as
else if ((refType == RefTypeParamDef) && (varDsc->lvRefCntWtd() <= BB_UNITY_WEIGHT) &&
(!currentRefPosition->lastUse || (currentInterval->physReg == REG_STK)))
so it takes 2 lines instead of 3?
| (!currentRefPosition->lastUse || (currentInterval->physReg == REG_STK)) && | ||
| varDsc->lvRefCntWtd() <= BB_UNITY_WEIGHT) | ||
| { | ||
| // If this is a low ref-count parameter, and either it is *not* a last used (i.e. unused) or it's |
There was a problem hiding this comment.
Nit: It was not clear for me if not was applicable to the word in the brackets: it is *not* a last used (i.e. unused) should be read as it is not unused or it is unused? From the context, it looks like the first but maybe then we can delete double negation?
| // If this is a low ref-count parameter, and either it is *not* a last used (i.e. unused) or it's | |
| // If this is a low ref-count parameter, and either it is used (def is not the last use) or it's |
CarolEidt
commented
Nov 13, 2020
Thanks for the review @sandreenko! |
No description provided.