mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
Fix bug: LICM/2003-02-28-PromoteDifferentType.ll
llvm-svn: 5675
This commit is contained in:
parent
0e86077efc
commit
09c35df4e9
@ -487,9 +487,15 @@ void LICM::findPromotableValuesInLoop(
|
||||
|
||||
bool PointerOk = true;
|
||||
for (std::set<Value*>::const_iterator I =CurLBI->LoadedPointers.begin(),
|
||||
E = CurLBI->LoadedPointers.end(); I != E; ++I)
|
||||
if (AA->alias(V, ~0, *I, ~0) == AliasAnalysis::MayAlias) {
|
||||
E = CurLBI->LoadedPointers.end(); PointerOk && I != E; ++I)
|
||||
switch (AA->alias(V, ~0, *I, ~0)) {
|
||||
case AliasAnalysis::MustAlias:
|
||||
if (V->getType() != (*I)->getType())
|
||||
PointerOk = false;
|
||||
break;
|
||||
case AliasAnalysis::MayAlias:
|
||||
PointerOk = false;
|
||||
case AliasAnalysis::NoAlias:
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user