[llvm] b612357 - Fix build after ab736a27
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 25 12:10:26 PDT 2022
Author: Philip Reames
Date: 2022-06-25T12:10:19-07:00
New Revision: b61235739f64a060367f71cea471c892fe80d78e
URL: https://github.com/llvm/llvm-project/commit/b61235739f64a060367f71cea471c892fe80d78e
DIFF: https://github.com/llvm/llvm-project/commit/b61235739f64a060367f71cea471c892fe80d78e.diff
LOG: Fix build after ab736a27
This class is templatized by the concrete subclass - not all subclasses have a data layout field called DL.
Added:
Modified:
llvm/include/llvm/CodeGen/BasicTTIImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/CodeGen/BasicTTIImpl.h b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
index 2ed687362cab..f01541bae86b 100644
--- a/llvm/include/llvm/CodeGen/BasicTTIImpl.h
+++ b/llvm/include/llvm/CodeGen/BasicTTIImpl.h
@@ -1203,6 +1203,7 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
if (CostKind != TTI::TCK_RecipThroughput)
return Cost;
+ const DataLayout &DL = this->getDataLayout();
if (Src->isVectorTy() &&
// In practice it's not currently possible to have a change in lane
// length for extending loads or truncating stores so both types should
More information about the llvm-commits
mailing list