Delete a redundant if branch.

llvm-svn: 14967
This commit is contained in:
Reid Spencer 2004-07-18 08:34:52 +00:00
parent c44cb6bd9f
commit f0a5bcaae4
1 changed files with 1 additions and 4 deletions

View 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();