[llvm-commits] [llvm] r121508 - /llvm/trunk/lib/Analysis/AliasSetTracker.cpp
Dan Gohman
gohman at apple.com
Fri Dec 10 11:40:48 PST 2010
Author: djg
Date: Fri Dec 10 13:40:47 2010
New Revision: 121508
URL: http://llvm.org/viewvc/llvm-project?rev=121508&view=rev
Log:
Update this code to handle PartialAlias as MayAlias.
Modified:
llvm/trunk/lib/Analysis/AliasSetTracker.cpp
Modified: llvm/trunk/lib/Analysis/AliasSetTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/AliasSetTracker.cpp?rev=121508&r1=121507&r2=121508&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/AliasSetTracker.cpp (original)
+++ llvm/trunk/lib/Analysis/AliasSetTracker.cpp Fri Dec 10 13:40:47 2010
@@ -105,7 +105,7 @@
AA.alias(AliasAnalysis::Location(P->getValue(), P->getSize(),
P->getTBAAInfo()),
AliasAnalysis::Location(Entry.getValue(), Size, TBAAInfo));
- if (Result == AliasAnalysis::MayAlias)
+ if (Result != AliasAnalysis::MustAlias)
AliasTy = MayAlias;
else // First entry of must alias must have maximum size!
P->updateSizeAndTBAAInfo(Size, TBAAInfo);
More information about the llvm-commits
mailing list