forked from OSchip/llvm-project
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:
parent
9f617a0cb2
commit
928229fda6
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue