mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-16 11:30:51 +00:00
Revert r131781 again. Apparently there is more going on here.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@132625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1023f5a42d
commit
9a9d218ed0
@ -944,17 +944,7 @@ BasicAliasAnalysis::aliasGEP(const GEPOperator *GEP1, uint64_t V1Size,
|
|||||||
return NoAlias;
|
return NoAlias;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Statically, we can see that the base objects are the same, but the
|
return MayAlias;
|
||||||
// pointers have dynamic offsets which we can't resolve. And none of our
|
|
||||||
// little tricks above worked.
|
|
||||||
//
|
|
||||||
// TODO: Returning PartialAlias instead of MayAlias is a mild hack; the
|
|
||||||
// practical effect of this is protecting TBAA in the case of dynamic
|
|
||||||
// indices into arrays of unions. An alternative way to solve this would
|
|
||||||
// be to have clang emit extra metadata for unions and/or union accesses.
|
|
||||||
// A union-specific solution wouldn't handle the problem for malloc'd
|
|
||||||
// memory however.
|
|
||||||
return PartialAlias;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static AliasAnalysis::AliasResult
|
static AliasAnalysis::AliasResult
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {1 partial alias}
|
; RUN: opt < %s -basicaa -aa-eval -print-all-alias-modref-info -disable-output |& grep {1 may alias}
|
||||||
; PR7959
|
; PR7959
|
||||||
|
|
||||||
target datalayout = "e-p:32:32:32"
|
target datalayout = "e-p:32:32:32"
|
||||||
|
Loading…
Reference in New Issue
Block a user