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.

llvm-svn: 218613
This commit is contained in:
Johannes Doerfert 2014-09-29 17:06:29 +00:00
parent 9f617a0cb2
commit 928229fda6
1 changed files with 6 additions and 0 deletions

View File

@ -196,6 +196,12 @@ ScopDetection::ScopDetection() : FunctionPass(ID) {
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");