[llvm-commits] [llvm] r116721 - /llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
Dan Gohman
gohman at apple.com
Mon Oct 18 11:10:32 PDT 2010
Author: djg
Date: Mon Oct 18 13:10:31 2010
New Revision: 116721
URL: http://llvm.org/viewvc/llvm-project?rev=116721&view=rev
Log:
Use chaining in TypeBasedAliasAnalysis::pointsToConstantMemory.
Modified:
llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
Modified: llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp?rev=116721&r1=116720&r2=116721&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp (original)
+++ llvm/trunk/lib/Analysis/TypeBasedAliasAnalysis.cpp Mon Oct 18 13:10:31 2010
@@ -173,5 +173,8 @@
// If this is an "immutable" type, we can assume the pointer is pointing
// to constant memory.
- return TBAANode(M).TypeIsImmutable();
+ if (TBAANode(M).TypeIsImmutable())
+ return true;
+
+ return AliasAnalysis::pointsToConstantMemory(Loc);
}
More information about the llvm-commits
mailing list