mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +00:00
Revert r231104, "unique_ptrify FullDependenceAnalysis::DV", to appease msc18 C2280.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231334 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -221,6 +221,9 @@ namespace llvm {
|
|||||||
Instruction *Dst,
|
Instruction *Dst,
|
||||||
bool LoopIndependent,
|
bool LoopIndependent,
|
||||||
unsigned Levels);
|
unsigned Levels);
|
||||||
|
~FullDependence() {
|
||||||
|
delete[] DV;
|
||||||
|
}
|
||||||
|
|
||||||
/// isLoopIndependent - Returns true if this is a loop-independent
|
/// isLoopIndependent - Returns true if this is a loop-independent
|
||||||
/// dependence.
|
/// dependence.
|
||||||
@ -267,7 +270,7 @@ namespace llvm {
|
|||||||
unsigned short Levels;
|
unsigned short Levels;
|
||||||
bool LoopIndependent;
|
bool LoopIndependent;
|
||||||
bool Consistent; // Init to true, then refine.
|
bool Consistent; // Init to true, then refine.
|
||||||
std::unique_ptr<DVEntry[]> DV;
|
DVEntry *DV;
|
||||||
friend class DependenceAnalysis;
|
friend class DependenceAnalysis;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -226,12 +226,16 @@ bool Dependence::isScalar(unsigned level) const {
|
|||||||
//===----------------------------------------------------------------------===//
|
//===----------------------------------------------------------------------===//
|
||||||
// FullDependence methods
|
// FullDependence methods
|
||||||
|
|
||||||
FullDependence::FullDependence(Instruction *Source, Instruction *Destination,
|
FullDependence::FullDependence(Instruction *Source,
|
||||||
|
Instruction *Destination,
|
||||||
bool PossiblyLoopIndependent,
|
bool PossiblyLoopIndependent,
|
||||||
unsigned CommonLevels)
|
unsigned CommonLevels) :
|
||||||
: Dependence(Source, Destination), Levels(CommonLevels),
|
Dependence(Source, Destination),
|
||||||
LoopIndependent(PossiblyLoopIndependent), Consistent(true),
|
Levels(CommonLevels),
|
||||||
DV(CommonLevels ? new DVEntry[CommonLevels] : nullptr) {}
|
LoopIndependent(PossiblyLoopIndependent) {
|
||||||
|
Consistent = true;
|
||||||
|
DV = CommonLevels ? new DVEntry[CommonLevels] : nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
// The rest are simple getters that hide the implementation.
|
// The rest are simple getters that hide the implementation.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user