summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/ScalarEvolution.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2011-01-09 23:02:10 +0000
committerChris Lattner <sabre@nondot.org>2011-01-09 23:02:10 +0000
commit67f82314affd8c1f564e7502b34e85d53ef6161c (patch)
treee7be2f8c7e9ed328cf00f09caa25b3d489762338 /llvm/lib/Analysis/ScalarEvolution.cpp
parent28f140a33e61c3bc197bed5279f5d3a975a273a3 (diff)
downloadbcm5719-llvm-67f82314affd8c1f564e7502b34e85d53ef6161c.tar.gz
bcm5719-llvm-67f82314affd8c1f564e7502b34e85d53ef6161c.zip
add a fixme: ir isn't expressive enough.
llvm-svn: 123139
Diffstat (limited to 'llvm/lib/Analysis/ScalarEvolution.cpp')
-rw-r--r--llvm/lib/Analysis/ScalarEvolution.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp
index 0c16bbc334c..922751fe3d1 100644
--- a/llvm/lib/Analysis/ScalarEvolution.cpp
+++ b/llvm/lib/Analysis/ScalarEvolution.cpp
@@ -4863,6 +4863,7 @@ ScalarEvolution::HowFarToZero(const SCEV *V, const Loop *L) {
// the stride is. As such, NUW addrec's will always become zero in
// "start / -stride" steps, and we know that the division is exact.
if (AddRec->hasNoUnsignedWrap())
+ // FIXME: We really want an "isexact" bit for udiv.
return getUDivExpr(Start, getNegativeSCEV(Step));
// For now we handle only constant steps.
OpenPOWER on IntegriCloud