Speed up interface checking and casting (#49257)
authorBen Adams <thundercat@illyriad.co.uk>
Sun, 7 Mar 2021 19:54:19 +0000 (19:54 +0000)
committerGitHub <noreply@github.com>
Sun, 7 Mar 2021 19:54:19 +0000 (11:54 -0800)
commitbea0abbdf65eb928892d4de980db3095d12d2ec4
tree480a6f9b96773a1f0ed407c3543260d8560a33ad
parent49eed0efd03fa09be1718cb67b1a7b38c8cfb95c
Speed up interface checking and casting (#49257)

* Reduce branches in IsInstanceOfInterface/ChkCastInterface

* Drop extra var, lea; additional check for small counts

* Feedback

* Undo IsInstanceOfClass change

* Tidy usings
src/coreclr/System.Private.CoreLib/src/System/Runtime/CompilerServices/CastHelpers.cs