From 49774fb96004b149bd9df34ec9b5c8943426dab9 Mon Sep 17 00:00:00 2001 From: Julian Seward Date: Mon, 2 May 2005 10:54:34 +0000 Subject: [PATCH] Get rid of some functions made redundant by recent isel reorganisation. git-svn-id: svn://svn.valgrind.org/vex/trunk@1153 --- VEX/priv/host-amd64/isel.c | 3 --- VEX/priv/host-x86/isel.c | 19 ------------------- 2 files changed, 22 deletions(-) diff --git a/VEX/priv/host-amd64/isel.c b/VEX/priv/host-amd64/isel.c index f0d570e819..80912407bd 100644 --- a/VEX/priv/host-amd64/isel.c +++ b/VEX/priv/host-amd64/isel.c @@ -780,9 +780,7 @@ static HReg iselIntExpr_R_wrk ( ISelEnv* env, IRExpr* e ) { MatchInfo mi; DECLARE_PATTERN(p_8Uto64); - DECLARE_PATTERN(p_16Uto64); DECLARE_PATTERN(p_1Uto8_64to1); -//.. DECLARE_PATTERN(p_32to1_then_1Uto8); IRType ty = typeOfIRExpr(env->type_env,e); vassert(ty == Ity_I32 || Ity_I16 || Ity_I8); @@ -1747,7 +1745,6 @@ static AMD64CondCode iselCondCode ( ISelEnv* env, IRExpr* e ) static AMD64CondCode iselCondCode_wrk ( ISelEnv* env, IRExpr* e ) { MatchInfo mi; - DECLARE_PATTERN(p_32to1_64to32); //.. DECLARE_PATTERN(p_1Uto32_then_32to1); //.. DECLARE_PATTERN(p_1Sto32_then_32to1); diff --git a/VEX/priv/host-x86/isel.c b/VEX/priv/host-x86/isel.c index 941fc0ea26..fb676d153f 100644 --- a/VEX/priv/host-x86/isel.c +++ b/VEX/priv/host-x86/isel.c @@ -97,16 +97,6 @@ static IRExpr* binop ( IROp op, IRExpr* a1, IRExpr* a2 ) return IRExpr_Binop(op, a1, a2); } -static IRExpr* mkU64 ( ULong i ) -{ - return IRExpr_Const(IRConst_U64(i)); -} - -static IRExpr* mkU32 ( UInt i ) -{ - return IRExpr_Const(IRConst_U32(i)); -} - static IRExpr* bind ( Int binder ) { return IRExpr_Binder(binder); @@ -256,15 +246,6 @@ static HReg iselVecExpr ( ISelEnv* env, IRExpr* e ); /*--- ISEL: Misc helpers ---*/ /*---------------------------------------------------------*/ -/* Is this a 32-bit zero expression? */ - -static Bool isZero32 ( IRExpr* e ) -{ - return toBool( e->tag == Iex_Const - && e->Iex.Const.con->tag == Ico_U32 - && e->Iex.Const.con->Ico.U32 == 0 ); -} - /* Make a int reg-reg move. */ static X86Instr* mk_iMOVsd_RR ( HReg src, HReg dst ) -- 2.47.3