forked from OSchip/llvm-project
[Transforms] Use default member initialization in Prefetch (NFC)
This commit is contained in:
parent
0b9a610a75
commit
fd3e8044cd
|
@ -236,15 +236,14 @@ struct Prefetch {
|
||||||
/// The address formula for this prefetch as returned by ScalarEvolution.
|
/// The address formula for this prefetch as returned by ScalarEvolution.
|
||||||
const SCEVAddRecExpr *LSCEVAddRec;
|
const SCEVAddRecExpr *LSCEVAddRec;
|
||||||
/// The point of insertion for the prefetch instruction.
|
/// The point of insertion for the prefetch instruction.
|
||||||
Instruction *InsertPt;
|
Instruction *InsertPt = nullptr;
|
||||||
/// True if targeting a write memory access.
|
/// True if targeting a write memory access.
|
||||||
bool Writes;
|
bool Writes = false;
|
||||||
/// The (first seen) prefetched instruction.
|
/// The (first seen) prefetched instruction.
|
||||||
Instruction *MemI;
|
Instruction *MemI = nullptr;
|
||||||
|
|
||||||
/// Constructor to create a new Prefetch for \p I.
|
/// Constructor to create a new Prefetch for \p I.
|
||||||
Prefetch(const SCEVAddRecExpr *L, Instruction *I)
|
Prefetch(const SCEVAddRecExpr *L, Instruction *I) : LSCEVAddRec(L) {
|
||||||
: LSCEVAddRec(L), InsertPt(nullptr), Writes(false), MemI(nullptr) {
|
|
||||||
addInstruction(I);
|
addInstruction(I);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue