From 5e2e0cb9aa599b015ef7edd09a5ff822b6bb5b77 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 1 Nov 2006 03:45:43 +0000 Subject: Remove unnecessary sign conversions made possible by last patch. llvm-svn: 31339 --- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'llvm/lib/ExecutionEngine/Interpreter/Execution.cpp') diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index c10dbbd12369..5a7181f83eb9 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -260,8 +260,6 @@ static GenericValue executeMulInst(GenericValue Src1, GenericValue Src2, static GenericValue executeUDivInst(GenericValue Src1, GenericValue Src2, const Type *Ty) { GenericValue Dest; - if (Ty->isSigned()) - Ty = Ty->getUnsignedVersion(); switch (Ty->getTypeID()) { IMPLEMENT_SIGNLESS_BINOP(/, UByte, SByte); IMPLEMENT_SIGNLESS_BINOP(/, UShort, Short); @@ -277,8 +275,6 @@ static GenericValue executeUDivInst(GenericValue Src1, GenericValue Src2, static GenericValue executeSDivInst(GenericValue Src1, GenericValue Src2, const Type *Ty) { GenericValue Dest; - if (Ty->isUnsigned()) - Ty = Ty->getSignedVersion(); switch (Ty->getTypeID()) { IMPLEMENT_SIGNLESS_BINOP(/, SByte, UByte); IMPLEMENT_SIGNLESS_BINOP(/, Short, UShort); -- cgit v1.2.3