Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove hack
  • Loading branch information
MichalStrehovsky committed Sep 23, 2023
commit 16f724fef434fb55ebcb604959c8a10c3696a5f6
Original file line number Diff line number Diff line change
Expand Up @@ -452,7 +452,7 @@ private Status TryScanMethod(MethodIL methodIL, Value[] parameters, Stack<Method
}

Value retVal;
if ((!method.IsIntrinsic && !method.OwningType.IsIntrinsic) || !TryHandleIntrinsicCall(method, methodParams, out retVal))
if (!method.IsIntrinsic || !TryHandleIntrinsicCall(method, methodParams, out retVal))
{
recursionProtect ??= new Stack<MethodDesc>();
recursionProtect.Push(methodIL.OwningMethod);
Expand Down Expand Up @@ -1701,13 +1701,6 @@ private bool TryHandleIntrinsicCall(MethodDesc method, Value[] parameters, out V
retVal = ValueTypeValue.FromSByte(parameters[0] == parameters[1] ? (sbyte)1 : (sbyte)0);
return true;
}
case "get_IsSupported" when method.OwningType is MetadataType sse2Type
&& sse2Type.Name == "Sse2":
{
// TODO: hacky
retVal = ValueTypeValue.FromSByte(sse2Type.Context.Target.Architecture == TargetArchitecture.X64 ? (sbyte)1 : (sbyte)0);
return true;
}
}

return false;
Expand Down