forked from OSchip/llvm-project
[AMDGPU] Make use of emitRemovedIntrinsicError. NFC.
Change-Id: I482bbf528255f2eacd3878ddfe7edb9a8f63d5c2
This commit is contained in:
parent
7310501f74
commit
4f25e53982
|
@ -6588,11 +6588,7 @@ SDValue SITargetLowering::LowerINTRINSIC_WO_CHAIN(SDValue Op,
|
|||
if (Subtarget->getGeneration() < AMDGPUSubtarget::VOLCANIC_ISLANDS)
|
||||
return SDValue();
|
||||
|
||||
DiagnosticInfoUnsupported BadIntrin(
|
||||
MF.getFunction(), "intrinsic not supported on subtarget",
|
||||
DL.getDebugLoc());
|
||||
DAG.getContext()->diagnose(BadIntrin);
|
||||
return DAG.getUNDEF(VT);
|
||||
return emitRemovedIntrinsicError(DAG, DL, VT);
|
||||
}
|
||||
case Intrinsic::amdgcn_ldexp:
|
||||
return DAG.getNode(AMDGPUISD::LDEXP, DL, VT,
|
||||
|
|
Loading…
Reference in New Issue