Remove unnecessary sign conversions made possible by last patch.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 1 Nov 2006 03:45:43 +0000 (03:45 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 1 Nov 2006 03:45:43 +0000 (03:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31339 91177308-0d34-0410-b5e6-96231b3b80d8

lib/ExecutionEngine/Interpreter/Execution.cpp

index c10dbbd12369fc5b7ad7f942def7aa0f78cd24e9..5a7181f83eb92515a8ea0ce5c1903cc213cd42d7 100644 (file)
@@ -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);