[llvm-commits] CVS:	llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
    Reid Spencer 
    reid at x10sys.com
       
    Tue Oct 31 19:45:57 PST 2006
    
    
  
Changes in directory llvm/lib/ExecutionEngine/Interpreter:
Execution.cpp updated: 1.142 -> 1.143
---
Log message:
Remove unnecessary sign conversions made possible by last patch.
---
Diffs of the changes:  (+0 -4)
 Execution.cpp |    4 ----
 1 files changed, 4 deletions(-)
Index: llvm/lib/ExecutionEngine/Interpreter/Execution.cpp
diff -u llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.142 llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.143
--- llvm/lib/ExecutionEngine/Interpreter/Execution.cpp:1.142	Tue Oct 31 21:41:05 2006
+++ llvm/lib/ExecutionEngine/Interpreter/Execution.cpp	Tue Oct 31 21:45:43 2006
@@ -260,8 +260,6 @@
 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 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);
    
    
More information about the llvm-commits
mailing list