Remove unused variables.
authorDan Gohman <gohman@apple.com>
Wed, 26 Aug 2009 00:13:22 +0000 (00:13 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 26 Aug 2009 00:13:22 +0000 (00:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80058 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/GVNPRE.cpp
lib/Transforms/Scalar/InstructionCombining.cpp

index bb5686704cf6ad74db9af8c605cabc99089a6f4a..b6296f72f3f4676033844bffb607d9f50b568440 100644 (file)
@@ -800,8 +800,6 @@ void GVNPRE::val_replace(ValueNumberedSet& s, Value* v) {
 Value* GVNPRE::phi_translate(Value* V, BasicBlock* pred, BasicBlock* succ) {
   if (V == 0)
     return 0;
-    
-  LLVMContext &Context = V->getContext();
   
   // Unary Operations
   if (CastInst* U = dyn_cast<CastInst>(V)) {
@@ -1597,7 +1595,6 @@ void GVNPRE::buildsets(Function& F) {
 void GVNPRE::insertion_pre(Value* e, BasicBlock* BB,
                            DenseMap<BasicBlock*, Value*>& avail,
                     std::map<BasicBlock*, ValueNumberedSet>& new_sets) {
-  LLVMContext &Context = e->getContext();
   for (pred_iterator PI = pred_begin(BB), PE = pred_end(BB); PI != PE; ++PI) {
     Value* e2 = avail[*PI];
     if (!availableOut[*PI].test(VN.lookup(e2))) {
index 312ea5d3ca69098e634e0c364e8de611a7a3376f..62ac9c91e2010f451d9c8265ffc2ac7d882c7ef3 100644 (file)
@@ -1870,8 +1870,6 @@ struct AddMaskingAnd {
 
 static Value *FoldOperationIntoSelectOperand(Instruction &I, Value *SO,
                                              InstCombiner *IC) {
-  LLVMContext *Context = IC->getContext();
-  
   if (CastInst *CI = dyn_cast<CastInst>(&I)) {
     return IC->InsertCastBefore(CI->getOpcode(), SO, I.getType(), I);
   }