Skip to content

Commit f3fe4f8

Browse files
committed
Ensure supportsVEX is set before supportsEVEX
1 parent 11da642 commit f3fe4f8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/coreclr/jit/compiler.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2348,18 +2348,18 @@ void Compiler::compSetProcessor()
23482348
#ifdef TARGET_XARCH
23492349
if (!compIsForInlining())
23502350
{
2351-
if (canUseEvexEncoding())
2352-
{
2353-
codeGen->GetEmitter()->SetUseEvexEncoding(true);
2354-
// TODO-XArch-AVX512 : Revisit other flags to be set once avx512 instructions are added.
2355-
}
23562351
if (canUseVexEncoding())
23572352
{
23582353
codeGen->GetEmitter()->SetUseVEXEncoding(true);
23592354
// Assume each JITted method does not contain AVX instruction at first
23602355
codeGen->GetEmitter()->SetContainsAVX(false);
23612356
codeGen->GetEmitter()->SetContains256bitOrMoreAVX(false);
23622357
}
2358+
if (canUseEvexEncoding())
2359+
{
2360+
codeGen->GetEmitter()->SetUseEvexEncoding(true);
2361+
// TODO-XArch-AVX512 : Revisit other flags to be set once avx512 instructions are added.
2362+
}
23632363
}
23642364
#endif // TARGET_XARCH
23652365
}

0 commit comments

Comments
 (0)