Changes in directory llvm/lib/Transforms/Utils:

Local.cpp updated: 1.66 -> 1.67
---
Log message:

remove now-dead code.


---
Diffs of the changes:  (+0 -14)

 Local.cpp |   14 --------------
 1 files changed, 14 deletions(-)


Index: llvm/lib/Transforms/Utils/Local.cpp
diff -u llvm/lib/Transforms/Utils/Local.cpp:1.66 
llvm/lib/Transforms/Utils/Local.cpp:1.67
--- llvm/lib/Transforms/Utils/Local.cpp:1.66    Tue Jan 30 17:13:49 2007
+++ llvm/lib/Transforms/Utils/Local.cpp Tue Jan 30 17:29:47 2007
@@ -68,20 +68,6 @@
     return Result;
   }
 
-  Constant *Op0 = 0, *Op1 = 0;
-  switch (I->getNumOperands()) {
-  default:
-  case 2:
-    Op1 = dyn_cast<Constant>(I->getOperand(1));
-    if (Op1 == 0) return 0;        // Not a constant?, can't fold
-    /* FALL THROUGH */
-  case 1:
-    Op0 = dyn_cast<Constant>(I->getOperand(0));
-    if (Op0 == 0) return 0;        // Not a constant?, can't fold
-    break;
-  case 0: return 0;
-  }
-
   // Scan the operand list, checking to see if they are all constants, if so,
   // hand off to ConstantFoldInstOperands.
   SmallVector<Constant*, 8> Ops;



_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to