diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2016-08-24 17:35:37 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2016-08-24 17:35:37 +0000 |
commit | 887f197370e1d3969f8fe559d55b146f73f06a3e (patch) | |
tree | 3bc1a11cffd970e8fd97646b588430671515ddb5 /lib/Analysis/ScalarEvolution.cpp | |
parent | a7fe922b98bb45be7dce7c1cfe668ec27eeddc74 (diff) |
Notes
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 2abbf3480358..e42a4b574d90 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -4822,6 +4822,10 @@ bool ScalarEvolution::isSCEVExprNeverPoison(const Instruction *I) { // from different loops, so that we know which loop to prove that I is // executed in. for (unsigned OpIndex = 0; OpIndex < I->getNumOperands(); ++OpIndex) { + // I could be an extractvalue from a call to an overflow intrinsic. + // TODO: We can do better here in some cases. + if (!isSCEVable(I->getOperand(OpIndex)->getType())) + return false; const SCEV *Op = getSCEV(I->getOperand(OpIndex)); if (auto *AddRec = dyn_cast<SCEVAddRecExpr>(Op)) { bool AllOtherOpsLoopInvariant = true; |