mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-02 09:49:09 +00:00
R600: Remove DIV_INF
This corresponded to an amdil instruction which there is a 2 instruction equivalent for. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@211616 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
26da337208
commit
a91ff54e43
@ -1246,7 +1246,8 @@ SDValue AMDGPUTargetLowering::LowerSDIV24(SDValue Op, SelectionDAG &DAG) const {
|
||||
SDValue fb = DAG.getNode(ISD::SINT_TO_FP, DL, FLTTY, ib);
|
||||
|
||||
// float fq = native_divide(fa, fb);
|
||||
SDValue fq = DAG.getNode(AMDGPUISD::DIV_INF, DL, FLTTY, fa, fb);
|
||||
SDValue fq = DAG.getNode(ISD::FMUL, DL, FLTTY,
|
||||
fa, DAG.getNode(AMDGPUISD::RCP, DL, FLTTY, fb));
|
||||
|
||||
// fq = trunc(fq);
|
||||
fq = DAG.getNode(ISD::FTRUNC, DL, FLTTY, fq);
|
||||
@ -2031,7 +2032,6 @@ const char* AMDGPUTargetLowering::getTargetNodeName(unsigned Opcode) const {
|
||||
// AMDIL DAG nodes
|
||||
NODE_NAME_CASE(CALL);
|
||||
NODE_NAME_CASE(UMUL);
|
||||
NODE_NAME_CASE(DIV_INF);
|
||||
NODE_NAME_CASE(RET_FLAG);
|
||||
NODE_NAME_CASE(BRANCH_COND);
|
||||
|
||||
|
@ -165,7 +165,6 @@ enum {
|
||||
FIRST_NUMBER = ISD::BUILTIN_OP_END,
|
||||
CALL, // Function call based on a single integer
|
||||
UMUL, // 32bit unsigned multiplication
|
||||
DIV_INF, // Divide with infinity returned on zero divisor
|
||||
RET_FLAG,
|
||||
BRANCH_COND,
|
||||
// End AMDIL ISD Opcodes
|
||||
|
Loading…
Reference in New Issue
Block a user