diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Analysis/CostModel.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Analysis/VFABIDemangling.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Analysis/ValueTracking.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp | 1 | ||||
-rw-r--r-- | llvm/lib/Passes/PassBuilderPipelines.cpp | 5 | ||||
-rw-r--r-- | llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h | 1 |
6 files changed, 5 insertions, 8 deletions
diff --git a/llvm/lib/Analysis/CostModel.cpp b/llvm/lib/Analysis/CostModel.cpp index c6a6852..1782b39 100644 --- a/llvm/lib/Analysis/CostModel.cpp +++ b/llvm/lib/Analysis/CostModel.cpp @@ -109,6 +109,7 @@ void CostModelAnalysis::print(raw_ostream &OS, const Module*) const { else { Cost = TTI->getInstructionCost(&Inst, CostKind); } + if (auto CostVal = Cost.getValue()) OS << "Cost Model: Found an estimated cost of " << *CostVal; else @@ -137,6 +138,7 @@ PreservedAnalyses CostModelPrinterPass::run(Function &F, else { Cost = TTI.getInstructionCost(&Inst, CostKind); } + if (auto CostVal = Cost.getValue()) OS << "Cost Model: Found an estimated cost of " << *CostVal; else diff --git a/llvm/lib/Analysis/VFABIDemangling.cpp b/llvm/lib/Analysis/VFABIDemangling.cpp index fa483d0..aa38c39 100644 --- a/llvm/lib/Analysis/VFABIDemangling.cpp +++ b/llvm/lib/Analysis/VFABIDemangling.cpp @@ -272,6 +272,7 @@ ParseRet tryParseAlign(StringRef &ParseString, Align &Alignment) { return ParseRet::None; } + #ifndef NDEBUG // Verify the assumtion that all vectors in the signature of a vector // function have the same number of elements. @@ -292,7 +293,6 @@ bool verifyAllVectorsHaveSameWidth(FunctionType *Signature) { return (EC == VTy->getElementCount()); }); } - #endif // NDEBUG // Extract the VectorizationFactor from a given function signature, diff --git a/llvm/lib/Analysis/ValueTracking.cpp b/llvm/lib/Analysis/ValueTracking.cpp index 685910c..563929a 100644 --- a/llvm/lib/Analysis/ValueTracking.cpp +++ b/llvm/lib/Analysis/ValueTracking.cpp @@ -2297,7 +2297,7 @@ static bool isGEPKnownNonNull(const GEPOperator *GEP, unsigned Depth, } // If we have a zero-sized type, the index doesn't matter. Keep looping. - if (Q.DL.getTypeAllocSize(GTI.getIndexedType()).getKnownMinSize() == 0) + if (Q.DL.getTypeAllocSize(GTI.getIndexedType()).isZero()) continue; // Fast path the constant operand case both for efficiency and so we don't diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index 96d120d5..7b8e042 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -5243,7 +5243,6 @@ SDValue DAGTypeLegalizer::PromoteIntRes_VECTOR_SHUFFLE(SDNode *N) { return DAG.getVectorShuffle(OutVT, dl, V0, V1, NewMask); } - SDValue DAGTypeLegalizer::PromoteIntRes_BUILD_VECTOR(SDNode *N) { EVT OutVT = N->getValueType(0); EVT NOutVT = TLI.getTypeToTransformTo(*DAG.getContext(), OutVT); diff --git a/llvm/lib/Passes/PassBuilderPipelines.cpp b/llvm/lib/Passes/PassBuilderPipelines.cpp index 6e39df3..4f1ef22 100644 --- a/llvm/lib/Passes/PassBuilderPipelines.cpp +++ b/llvm/lib/Passes/PassBuilderPipelines.cpp @@ -204,7 +204,6 @@ PipelineTuningOptions::PipelineTuningOptions() { } namespace llvm { - extern cl::opt<unsigned> MaxDevirtIterations; extern cl::opt<bool> EnableConstraintElimination; extern cl::opt<bool> EnableFunctionSpecialization; @@ -221,14 +220,10 @@ extern cl::opt<bool> EnableDFAJumpThreading; extern cl::opt<bool> RunNewGVN; extern cl::opt<bool> RunPartialInlining; extern cl::opt<bool> ExtraVectorizerPasses; - extern cl::opt<bool> FlattenedProfileUsed; - extern cl::opt<AttributorRunOption> AttributorRun; extern cl::opt<bool> EnableKnowledgeRetention; - extern cl::opt<bool> EnableMatrix; - extern cl::opt<bool> DisablePreInliner; extern cl::opt<int> PreInlineThreshold; } // namespace llvm diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h index 2e9a9fe..7c73079 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h +++ b/llvm/lib/Transforms/Vectorize/LoopVectorizationPlanner.h @@ -188,6 +188,7 @@ public: struct VectorizationFactor { /// Vector width with best cost. ElementCount Width; + /// Cost of the loop with that width. InstructionCost Cost; |