mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-20 11:29:24 +00:00
Delete a redundant if branch.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14967 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c3c2fdf5a8
commit
c88920df66
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user