Skip to content
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

ARM64 - Allow double constants to CSE more often #65176

Closed
wants to merge 17 commits into from
1 change: 1 addition & 0 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3486,6 +3486,7 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree)
}
#elif defined(TARGET_ARM64)
if ((*((__int64*)&(tree->AsDblCon()->gtDconVal)) == 0) ||
TIHan marked this conversation as resolved.
Show resolved Hide resolved
(compCurBB->bbWeight > BB_UNITY_WEIGHT) ||
TIHan marked this conversation as resolved.
Show resolved Hide resolved
TIHan marked this conversation as resolved.
Show resolved Hide resolved
emitter::emitIns_valid_imm_for_fmov(tree->AsDblCon()->gtDconVal))
{
costEx = 1;
Expand Down