mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-12 17:32:19 +00:00
Add some comments.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@80452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f8a87e8343
commit
ed77e52dd9
@ -69,9 +69,14 @@ ScalarEvolutionAliasAnalysis::runOnFunction(Function &F) {
|
||||
return false;
|
||||
}
|
||||
|
||||
/// GetUnderlyingIdentifiedObject - Given an expression, try to find an
|
||||
/// "identified object" (see AliasAnalysis::isIdentifiedObject) base
|
||||
/// value. Return null is none was found.
|
||||
Value *
|
||||
ScalarEvolutionAliasAnalysis::GetUnderlyingIdentifiedObject(const SCEV *S) {
|
||||
if (const SCEVAddRecExpr *AR = dyn_cast<SCEVAddRecExpr>(S)) {
|
||||
// In an addrec, assume that the base will be in the start, rather
|
||||
// than the step.
|
||||
return GetUnderlyingIdentifiedObject(AR->getStart());
|
||||
} else if (const SCEVAddExpr *A = dyn_cast<SCEVAddExpr>(S)) {
|
||||
// If there's a pointer operand, it'll be sorted at the end of the list.
|
||||
|
Loading…
x
Reference in New Issue
Block a user