The previous way to determine overload types of an intrinsic could work
only with functions that have return value of overloaded type. Functions
having return type described with SameVecWidthArgument were not
supported. This change implements overload type determination based on
intrinsic description provided by getIntrinsicInfoTableEntries.
The change does not affect functionality now but represents a
prerequisite for subsequent patches.
This did not assert on PtrToElt in the past? Since commit msg says that this does not affect functionality I wonder if this was an intentional change or not?