diff options
author | Florian Hahn <flo@fhahn.com> | 2019-03-02 01:57:28 +0000 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2019-03-02 01:57:28 +0000 |
commit | 3c7e92b5d618949492912e5bf3461da492fbca5e (patch) | |
tree | 2e3248eb773343d0fa7d0b3ca73d0088ade2e29d | |
parent | 02a913367a6228d2423703f4c57ee5c1dc60a134 (diff) | |
download | bcm5719-llvm-3c7e92b5d618949492912e5bf3461da492fbca5e.tar.gz bcm5719-llvm-3c7e92b5d618949492912e5bf3461da492fbca5e.zip |
[SCEV] Remove undef check for SCEVConstant (NFC)
The value stored in SCEVConstant is of type ConstantInt*, which can
never be UndefValue. So we should never hit that code.
Reviewers: mkazantsev, sanjoy
Reviewed By: sanjoy
Differential Revision: https://reviews.llvm.org/D58851
llvm-svn: 355257
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index cca425bf550..290e87a1f0f 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -10824,8 +10824,6 @@ static inline bool containsUndefs(const SCEV *S) { return SCEVExprContains(S, [](const SCEV *S) { if (const auto *SU = dyn_cast<SCEVUnknown>(S)) return isa<UndefValue>(SU->getValue()); - else if (const auto *SC = dyn_cast<SCEVConstant>(S)) - return isa<UndefValue>(SC->getValue()); return false; }); } |