[polly] r218613 - Disable runtime alias checks when we ignore aliasing.
Johannes Doerfert
doerfert at cs.uni-saarland.de
Mon Sep 29 10:06:30 PDT 2014
Author: jdoerfert
Date: Mon Sep 29 12:06:29 2014
New Revision: 218613
URL: http://llvm.org/viewvc/llvm-project?rev=218613&view=rev
Log:
Disable runtime alias checks when we ignore aliasing.
This is just a optimization to save the compile time and execution time
for runtime alias checks if the user guarantees no aliasing all together.
Modified:
polly/trunk/lib/Analysis/ScopDetection.cpp
Modified: polly/trunk/lib/Analysis/ScopDetection.cpp
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/lib/Analysis/ScopDetection.cpp?rev=218613&r1=218612&r2=218613&view=diff
==============================================================================
--- polly/trunk/lib/Analysis/ScopDetection.cpp (original)
+++ polly/trunk/lib/Analysis/ScopDetection.cpp Mon Sep 29 12:06:29 2014
@@ -196,6 +196,12 @@ ScopDetection::ScopDetection() : Functio
if (!PollyUseRuntimeAliasChecks)
return;
+ // Disable runtime alias checks if we ignore aliasing all together.
+ if (IgnoreAliasing) {
+ PollyUseRuntimeAliasChecks = false;
+ return;
+ }
+
if (PollyDelinearize) {
DEBUG(errs() << "WARNING: We disable runtime alias checks as "
"delinearization is enabled.\n");
More information about the llvm-commits
mailing list