You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@EgorBo, @SingleAccretion I would be happy to know your opinion if it is worth it to implement this optimization.
why not if it produces diffs 🙂
Have you measured the diffs if it's done in morph instead? I guess it should be a pretty straightforward change in morph.
E.g. I believe we already have x * 0 there
happy to know your opinion if it is worth it to implement this optimization.
why not if it produces diffs 🙂
Have you measured the diffs if it's done in morph instead? I guess it should be a pretty straightforward change in morph. E.g. I believe we already have x * 0 there
I tried to implement it in morph at first, it produced these regressions (diff_summary.3.md)
However, I think it could happen because I missed something.
I moved the optimization to morph phase.
Here are asmdiffs for x64 diff_summary.10.md
I couldn't get rid of the regressions. There are 190 of them, which doesn't feel right to me.
I couldn't get rid of the regressions. There are 190 of them, which doesn't feel right to me
Examples of the regressions would be beneficial (that is the actual assembly before/after). Often times regressions may simply be the JIT being able to kick in additional optimizations once the IR has simplified.
Activity
Draft for x ^ 0 opt (dotnet#65071)
am11 commentedon Feb 9, 2022
nit: here is the updated link with optimization flags: https://godbolt.org/z/rG3cMKr5q
EgorBo commentedon Feb 9, 2022
why not if it produces diffs 🙂
Have you measured the diffs if it's done in morph instead? I guess it should be a pretty straightforward change in morph.
E.g. I believe we already have
x * 0thereSkiFoD commentedon Feb 9, 2022
happy to know your opinion if it is worth it to implement this optimization.
I tried to implement it in morph at first, it produced these regressions (diff_summary.3.md)
However, I think it could happen because I missed something.
Moved the optimization to morph (dotnet#65071)
SkiFoD commentedon Feb 9, 2022
I moved the optimization to morph phase.
Here are asmdiffs for x64
diff_summary.10.md
I couldn't get rid of the regressions. There are 190 of them, which doesn't feel right to me.
Moved XOR related code from "fgMorphSmpOpOptional" to "fgOptimizeBitw…
Draft for x ^ 0 opt (dotnet#65071)
Moved the optimization to morph (dotnet#65071)
Moved XOR related code from "fgMorphSmpOpOptional" to "fgOptimizeBitw…
Made a suggested change (dotnet#65071)
JulieLeeMSFT commentedon Jun 10, 2022
@SkiFoD, the code complete for .NET 7 is July 11th. Do you think you can complete this before that? If not, we can move this to .NET 8.
tannergooding commentedon Jun 11, 2022
Examples of the regressions would be beneficial (that is the actual assembly before/after). Often times regressions may simply be the JIT being able to kick in additional optimizations once the IR has simplified.
SkiFoD commentedon Jun 11, 2022
@JulieLeeMSFT @tannergooding Hey everyone. The code has been already merged here #65072