Uh oh!
There was an error while loading. Please reload this page.
JIT: Late expansion for casts - #97075
Conversation
ghost
commented
Jan 17, 2024
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
Uh oh!
There was an error while loading. Please reload this page.
EgorBo
commented
Jan 17, 2024
/azp run runtime-coreclr pgo, runtime-coreclr libraries-pgo, runtime-coreclr pgostress |
|
Azure Pipelines successfully started running 3 pipeline(s). |
@jakobbotsch @dotnet/jit-contrib PTAL. Diffs. There are few things in the diffs:
Will move more casts to this phase from importer (all of them hopefully). For now only recently introduced profiled casts are handled. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Jakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>
…o late-cast-expansion
jakobbotsch
left a comment
There was a problem hiding this comment.
LGTM, but looks like CI is a bit unhappy.
EgorBo
commented
Jan 19, 2024
/azp run runtime-coreclr pgo, runtime-coreclr libraries-pgo |
|
Azure Pipelines successfully started running 2 pipeline(s). |
EgorBo
commented
Jan 19, 2024
Ah, I broke the control flow a bit - nullcheckBb used to jump straight to the use block without assigning Instead, I now do: Case 1:tmp=obj;
if (tmp!=null)
{
if (tmp.pMT!=likelyClass)
tmp=helperCallelseno-op; // this block will be collected
}
use(tmp);Case 2 (likelyClass is known to never pass the type check):tmp=obj;
if (tmp!=null)
{
if (tmp.pMT!=likelyClass)
tmp=helperCallelsetmp=null;
}
use(tmp);I can avoid the initial |
EgorBo
commented
Jan 19, 2024
Failure is #97103 |
Co-authored-by: Jakob Botsch Nielsen <Jakob.botsch.nielsen@gmail.com>

Move cast expansion from importer to a late phase. For now, only for profiled isinst.
Closes#96837
Contributes to #84025