From: Florian Krohm Date: Sun, 1 Sep 2013 20:17:23 +0000 (+0000) Subject: Add an optimisation for Iop_Left64. X-Git-Tag: svn/VALGRIND_3_9_0^2~48 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f927af3d53aee387c9a930b010da8c15e1e2fb5;p=thirdparty%2Fvalgrind.git Add an optimisation for Iop_Left64. git-svn-id: svn://svn.valgrind.org/vex/trunk@2747 --- diff --git a/VEX/priv/ir_opt.c b/VEX/priv/ir_opt.c index f368ce5e38..5982495e94 100644 --- a/VEX/priv/ir_opt.c +++ b/VEX/priv/ir_opt.c @@ -5065,6 +5065,11 @@ static IRExpr* fold_IRExpr_Unop ( IROp op, IRExpr* aa ) if (is_Unop(aa, Iop_Left32)) return IRExpr_Unop( Iop_Left32, aa->Iex.Unop.arg ); break; + case Iop_Left64: + /* Left64( Left64(x) ) --> Left64(x) */ + if (is_Unop(aa, Iop_Left64)) + return IRExpr_Unop( Iop_Left64, aa->Iex.Unop.arg ); + break; case Iop_32to1: /* 32to1( 1Uto32 ( x ) ) --> x */ if (is_Unop(aa, Iop_1Uto32))