mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Analysis: take a reference instead of pointer
This parameter is never null. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216356 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c97e8d8ddc
commit
75129f6f4c
@ -331,7 +331,7 @@ namespace llvm {
|
||||
///
|
||||
/// breaks the dependence and allows us to vectorize/parallelize
|
||||
/// both loops.
|
||||
const SCEV *getSplitIteration(const Dependence *Dep, unsigned Level);
|
||||
const SCEV *getSplitIteration(const Dependence &Dep, unsigned Level);
|
||||
|
||||
private:
|
||||
AliasAnalysis *AA;
|
||||
|
@ -168,7 +168,7 @@ void dumpExampleDependence(raw_ostream &OS, Function *F,
|
||||
for (unsigned Level = 1; Level <= D->getLevels(); Level++) {
|
||||
if (D->isSplitable(Level)) {
|
||||
OS << "da analyze - split level = " << Level;
|
||||
OS << ", iteration = " << *DA->getSplitIteration(D, Level);
|
||||
OS << ", iteration = " << *DA->getSplitIteration(*D, Level);
|
||||
OS << "!\n";
|
||||
}
|
||||
}
|
||||
@ -3729,13 +3729,12 @@ Dependence *DependenceAnalysis::depends(Instruction *Src,
|
||||
//
|
||||
// breaks the dependence and allows us to vectorize/parallelize
|
||||
// both loops.
|
||||
const SCEV *DependenceAnalysis::getSplitIteration(const Dependence *Dep,
|
||||
const SCEV *DependenceAnalysis::getSplitIteration(const Dependence &Dep,
|
||||
unsigned SplitLevel) {
|
||||
assert(Dep && "expected a pointer to a Dependence");
|
||||
assert(Dep->isSplitable(SplitLevel) &&
|
||||
assert(Dep.isSplitable(SplitLevel) &&
|
||||
"Dep should be splitable at SplitLevel");
|
||||
Instruction *Src = Dep->getSrc();
|
||||
Instruction *Dst = Dep->getDst();
|
||||
Instruction *Src = Dep.getSrc();
|
||||
Instruction *Dst = Dep.getDst();
|
||||
assert(Src->mayReadFromMemory() || Src->mayWriteToMemory());
|
||||
assert(Dst->mayReadFromMemory() || Dst->mayWriteToMemory());
|
||||
assert(isLoadOrStore(Src));
|
||||
|
Loading…
Reference in New Issue
Block a user