Delete a redundant if branch.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 08:34:52 +0000 (08:34 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 18 Jul 2004 08:34:52 +0000 (08:34 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14967 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/SCCP.cpp

index dc141d5b54e953dbe301b41591df99a9b10f3e7e..3557cadd40269121221417e7291a6137c320d5f1 100644 (file)
@@ -175,10 +175,7 @@ private:
     hash_map<Value*, InstVal>::iterator I = ValueState.find(V);
     if (I != ValueState.end()) return I->second;  // Common case, in the map
       
-    if (GlobalValue *GV = dyn_cast<GlobalValue>(V)) {
-      // The address of a global is a constant...
-      ValueState[V].markConstant(GV);
-    } else if (Constant *CPV = dyn_cast<Constant>(V)) {  // Constants are constant
+    if (Constant *CPV = dyn_cast<Constant>(V)) {  // Constants are constant
       ValueState[CPV].markConstant(CPV);
     } else if (isa<Argument>(V)) {                // Arguments are overdefined
       ValueState[V].markOverdefined();