Commit f1d9fd71 authored by Chen, Weiyu's avatar Chen, Weiyu Committed by gbsbuild

Clean up caller-save/restore code for A0 and F0/F1

Change-Id: I1924300d56909d9989b3794b35454a09a50c4814
parent 8950d5c2
......@@ -370,18 +370,6 @@ iga::Op BinaryEncodingIGA::getIGAOp(G4_opcode op, G4_INST *inst) const
case G4_pseudo_sada2:
igaOp = iga::Op::SADA2;
break;
case G4_pseudo_caller_save_a0:
ASSERT_USER(false, "G4_pseudo_caller_save_a0 not GEN ISA OPCODE.");
break;
case G4_pseudo_caller_restore_a0:
ASSERT_USER(false, "G4_pseudo_caller_restore_a0 not GEN ISA OPCODE.");
break;
case G4_pseudo_caller_save_flag:
ASSERT_USER(false, "G4_pseudo_caller_save_flag not GEN ISA OPCODE.");
break;
case G4_pseudo_caller_restore_flag:
ASSERT_USER(false, "G4_pseudo_caller_restore_flag not GEN ISA OPCODE.");
break;
case G4_pseudo_kill:
ASSERT_USER(false, "G4_pseudo_kill not GEN ISA OPCODE.");
break;
......
......@@ -241,12 +241,6 @@ HANDLE_INST( pseudo_caller_save, 0, 1, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_INST( pseudo_caller_restore, 1, 0, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_INST( pseudo_callee_save, 0, 1, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_INST( pseudo_callee_restore, 1, 0, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_INST( pseudo_caller_save_a0, 0, 1, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_INST( pseudo_caller_restore_a0, 1, 0, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_INST( pseudo_caller_save_flag, 0, 1, InstTypeMisc, GENX_BDW, \
ATTR_NONE )
HANDLE_INST( pseudo_caller_restore_flag, 1, 0, InstTypeMisc, GENX_BDW, \
ATTR_NONE )
HANDLE_INST( pseudo_kill, 0, 1, InstTypeMisc, GENX_BDW, ATTR_NONE )
HANDLE_NAME_INST( pseudo_lifetime_end, "lifetime", 2, 1, InstTypeMisc, \
GENX_BDW, ATTR_NONE )
......
......@@ -6653,12 +6653,6 @@ void G4_INST::computeRightBound(G4_Operand* opnd)
done = true;
}
else if( done == false && op == G4_pseudo_caller_save_flag )
{
opnd->setRightBound(opnd->getBase()->asRegVar()->getDeclare()->getNumberFlagElements() - 1);
done = true;
}
if( done == false )
{
......
This diff is collapsed.
......@@ -493,7 +493,7 @@ namespace vISA
void addCalleeSaveBias(BitSet& live);
void buildInterferenceAtBBExit(G4_BB* bb, BitSet& live);
void buildInterferenceWithinBB(G4_BB* bb, BitSet& live, G4_Declare* arg, G4_Declare* ret);
void buildInterferenceWithinBB(G4_BB* bb, BitSet& live);
void buildInterferenceForDst(G4_BB* bb, BitSet& live, G4_INST* inst, std::list<G4_INST*>::reverse_iterator i, G4_DstRegRegion* dst);
void buildInterferenceForFcall(G4_BB* bb, BitSet& live, G4_INST* inst, std::list<G4_INST*>::reverse_iterator i, G4_VarBase* regVar);
......@@ -531,10 +531,6 @@ namespace vISA
LiveRange** lrs;
bool isHybrid;
LIVERANGE_LIST spilledLRs;
bool requireCallerSaveRestoreCode;
bool requireCalleeSaveRestoreCode;
bool requireA0CallerSaveRestoreCode;
bool requireFlagCallerSaveRestoreCode;
bool forceSpill;
vISA::Mem_Manager mem;
const Options *m_options;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment