diff options
-rw-r--r-- | llvm/lib/Transforms/Scalar/SCCP.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/Transforms/Scalar/SCCP.cpp b/llvm/lib/Transforms/Scalar/SCCP.cpp index a8667eb4256..b5715932d51 100644 --- a/llvm/lib/Transforms/Scalar/SCCP.cpp +++ b/llvm/lib/Transforms/Scalar/SCCP.cpp @@ -365,11 +365,11 @@ private: if (IV.isOverdefined() || MergeWithV.isUnknown()) return; // Noop. if (MergeWithV.isOverdefined()) - markOverdefined(IV, V); - else if (IV.isUnknown()) - markConstant(IV, V, MergeWithV.getConstant()); - else if (IV.getConstant() != MergeWithV.getConstant()) - markOverdefined(IV, V); + return markOverdefined(IV, V); + if (IV.isUnknown()) + return markConstant(IV, V, MergeWithV.getConstant()); + if (IV.getConstant() != MergeWithV.getConstant()) + return markOverdefined(IV, V); } void mergeInValue(Value *V, LatticeVal MergeWithV) { |