summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-11-01 03:45:43 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-11-01 03:45:43 +0000
commit5e2e0cb9aa599b015ef7edd09a5ff822b6bb5b77 (patch)
tree35cc2d53548673a8bf0cfd54c338c6d8550e0a2d /llvm/lib/ExecutionEngine
parentf84930746ec85c5540695cb0d206553af812c37d (diff)
downloadbcm5719-llvm-5e2e0cb9aa599b015ef7edd09a5ff822b6bb5b77.tar.gz
bcm5719-llvm-5e2e0cb9aa599b015ef7edd09a5ff822b6bb5b77.zip
Remove unnecessary sign conversions made possible by last patch.
llvm-svn: 31339
Diffstat (limited to 'llvm/lib/ExecutionEngine')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/Execution.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
index c10dbbd1236..5a7181f83eb 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);
OpenPOWER on IntegriCloud