forked from OSchip/llvm-project
[Transforms] Use default member initialization in ConditionInfo (NFC)
This commit is contained in:
parent
930bf4e7bd
commit
0b9a610a75
|
@ -33,26 +33,23 @@ using namespace PatternMatch;
|
|||
namespace {
|
||||
struct ConditionInfo {
|
||||
/// Branch instruction with this condition
|
||||
BranchInst *BI;
|
||||
BranchInst *BI = nullptr;
|
||||
/// ICmp instruction with this condition
|
||||
ICmpInst *ICmp;
|
||||
ICmpInst *ICmp = nullptr;
|
||||
/// Preciate info
|
||||
ICmpInst::Predicate Pred;
|
||||
ICmpInst::Predicate Pred = ICmpInst::BAD_ICMP_PREDICATE;
|
||||
/// AddRec llvm value
|
||||
Value *AddRecValue;
|
||||
Value *AddRecValue = nullptr;
|
||||
/// Non PHI AddRec llvm value
|
||||
Value *NonPHIAddRecValue;
|
||||
/// Bound llvm value
|
||||
Value *BoundValue;
|
||||
Value *BoundValue = nullptr;
|
||||
/// AddRec SCEV
|
||||
const SCEVAddRecExpr *AddRecSCEV;
|
||||
const SCEVAddRecExpr *AddRecSCEV = nullptr;
|
||||
/// Bound SCEV
|
||||
const SCEV *BoundSCEV;
|
||||
const SCEV *BoundSCEV = nullptr;
|
||||
|
||||
ConditionInfo()
|
||||
: BI(nullptr), ICmp(nullptr), Pred(ICmpInst::BAD_ICMP_PREDICATE),
|
||||
AddRecValue(nullptr), BoundValue(nullptr), AddRecSCEV(nullptr),
|
||||
BoundSCEV(nullptr) {}
|
||||
ConditionInfo() = default;
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
|
Loading…
Reference in New Issue