* do not embed result type for scalar hw intrinsics
* Check the simdSize
* oversight fix
//
/* static */ bool Compiler::vnEncodesResultTypeForHWIntrinsic(NamedIntrinsic hwIntrinsicID)
{
+ // No extra type information is needed for scalar/special HW Intrinsic.
+ //
+ unsigned simdSize = 0;
+ if (HWIntrinsicInfo::tryLookupSimdSize(hwIntrinsicID, &simdSize) && (simdSize == 0))
+ {
+ return false;
+ }
+
int numArgs = HWIntrinsicInfo::lookupNumArgs(hwIntrinsicID);
// HW Intrinsic's with -1 for numArgs have a varying number of args, so we currently
- // give themm a unique value number them, and don't add an extra argument.
+ // give them a unique value number, and don't add an extra argument.
//
if (numArgs == -1)
{