mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-16 08:08:01 +00:00
Use SimplifyICmpOperands in isKnownPredicate too.
llvm-svn: 102233
This commit is contained in:
parent
815586b78c
commit
bae847c4c6
@ -4939,6 +4939,9 @@ bool ScalarEvolution::isKnownNonZero(const SCEV *S) {
|
||||
|
||||
bool ScalarEvolution::isKnownPredicate(ICmpInst::Predicate Pred,
|
||||
const SCEV *LHS, const SCEV *RHS) {
|
||||
// Canonicalize the inputs first.
|
||||
(void)SimplifyICmpOperands(Pred, LHS, RHS);
|
||||
|
||||
// If LHS or RHS is an addrec, check to see if the condition is true in
|
||||
// every iteration of the loop.
|
||||
if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(LHS))
|
||||
|
Loading…
Reference in New Issue
Block a user