mirror of
https://github.com/RPCS3/llvm.git
synced 2026-07-19 15:13:49 -04:00
[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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355257 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user