bug 122:
[oota-llvm.git] / lib / Transforms / Utils / SimplifyCFG.cpp
index c3ed43d1f0cf20f4849a256c76a8cb6e80b1f811..cc28e54c37469083c35fe71520d64c9a6fad654c 100644 (file)
@@ -211,8 +211,7 @@ static bool DominatesMergePoint(Value *V, BasicBlock *BB, bool AllowAggressive){
         if (cast<LoadInst>(I)->isVolatile())
           return false;
         if (!isa<AllocaInst>(I->getOperand(0)) &&
-            !isa<Constant>(I->getOperand(0)) &&
-            !isa<GlobalValue>(I->getOperand(0)))
+            !isa<Constant>(I->getOperand(0)))
           return false;
 
         // Finally, we have to check to make sure there are no instructions