summaryrefslogtreecommitdiffstats
path: root/polly/lib/Analysis/ScopDetection.cpp
diff options
context:
space:
mode:
authorJohannes Doerfert <doerfert@cs.uni-saarland.de>2016-04-26 14:33:12 +0000
committerJohannes Doerfert <doerfert@cs.uni-saarland.de>2016-04-26 14:33:12 +0000
commit792374b94181c313dd722ee200fa265b9a464bbe (patch)
treea1f15febac518df0180319d0f05d12b75162e2e4 /polly/lib/Analysis/ScopDetection.cpp
parent0baa73f3175f7f8f86954fad67efd9110ff9c6b2 (diff)
downloadbcm5719-llvm-792374b94181c313dd722ee200fa265b9a464bbe.tar.gz
bcm5719-llvm-792374b94181c313dd722ee200fa265b9a464bbe.zip
Allow unsigned comparisons
With this patch we will optimistically assume that the result of an unsigned comparison is the same as the result of the same comparison interpreted as signed. llvm-svn: 267559
Diffstat (limited to 'polly/lib/Analysis/ScopDetection.cpp')
-rw-r--r--polly/lib/Analysis/ScopDetection.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/polly/lib/Analysis/ScopDetection.cpp b/polly/lib/Analysis/ScopDetection.cpp
index 2e1caf51b10..4ee92fcfa93 100644
--- a/polly/lib/Analysis/ScopDetection.cpp
+++ b/polly/lib/Analysis/ScopDetection.cpp
@@ -149,11 +149,6 @@ static cl::opt<bool>
cl::Hidden, cl::init(false), cl::ZeroOrMore,
cl::cat(PollyCategory));
-static cl::opt<bool> AllowUnsigned("polly-allow-unsigned",
- cl::desc("Allow unsigned expressions"),
- cl::Hidden, cl::init(false), cl::ZeroOrMore,
- cl::cat(PollyCategory));
-
static cl::opt<bool, true>
TrackFailures("polly-detect-track-failures",
cl::desc("Track failure strings in detecting scop regions"),
@@ -385,13 +380,6 @@ bool ScopDetection::isValidBranch(BasicBlock &BB, BranchInst *BI,
}
ICmpInst *ICmp = cast<ICmpInst>(Condition);
- // Unsigned comparisons are not allowed. They trigger overflow problems
- // in the code generation.
- //
- // TODO: This is not sufficient and just hides bugs. However it does pretty
- // well.
- if (ICmp->isUnsigned() && !AllowUnsigned)
- return invalid<ReportUnsignedCond>(Context, /*Assert=*/true, BI, &BB);
// Are both operands of the ICmp affine?
if (isa<UndefValue>(ICmp->getOperand(0)) ||
OpenPOWER on IntegriCloud