File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -6042,8 +6042,13 @@ int Compiler::compCompile(CORINFO_MODULE_HANDLE classPtr,
6042
6042
// Note that it might be better to do this immediately when setting the JIT flags in CILJit::compileMethod()
6043
6043
// (when JitFlags::SetFromFlags() is called), but this is close enough. (To move this logic to
6044
6044
// CILJit::compileMethod() would require moving the info.compMatchedVM computation there as well.)
6045
+ //
6046
+ // We additionally want to do this for AltJit so that we can validate ISAs that the underlying CPU may
6047
+ // not support directly. Doing this check later, after opts.altJit has been initialized might be better
6048
+ // but it requires moving the whole set of logic down into compCompileHelper after compInitOptions has
6049
+ // run and we're going to end up exiting early if JIT_FLAG_ALT_JIT and opts.altJit don't match anyways
6045
6050
6046
- if (!info.compMatchedVM )
6051
+ if (!info.compMatchedVM || compileFlags-> IsSet (JitFlags::JIT_FLAG_ALT_JIT) )
6047
6052
{
6048
6053
CORINFO_InstructionSetFlags instructionSetFlags;
6049
6054
You can’t perform that action at this time.
0 commit comments