[llvm] 083d8aa - [SLP][NFC]Use TargetTransformInfo:: instead of TTI:: in BoUpSLP to avoid
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 5 10:27:31 PST 2024
Author: Alexey Bataev
Date: 2024-03-05T10:24:06-08:00
New Revision: 083d8aa03aca55b88098a91e41e41a8e321a5721
URL: https://github.com/llvm/llvm-project/commit/083d8aa03aca55b88098a91e41e41a8e321a5721
DIFF: https://github.com/llvm/llvm-project/commit/083d8aa03aca55b88098a91e41e41a8e321a5721.diff
LOG: [SLP][NFC]Use TargetTransformInfo:: instead of TTI:: in BoUpSLP to avoid
some compilers confusion.
Added:
Modified:
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
index 8cf59a18381abc..69bbaae0e724bf 100644
--- a/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+++ b/llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
@@ -2379,7 +2379,8 @@ class BoUpSLP {
const TreeEntry *getOperandEntry(const TreeEntry *E, unsigned Idx) const;
/// \returns Cast context for the given graph node.
- TTI::CastContextHint getCastContextHint(const TreeEntry &TE) const;
+ TargetTransformInfo::CastContextHint
+ getCastContextHint(const TreeEntry &TE) const;
/// \returns the cost of the vectorizable entry.
InstructionCost getEntryCost(const TreeEntry *E,
@@ -7037,7 +7038,8 @@ static bool isAlternateInstruction(const Instruction *I,
return I->getOpcode() == AltOp->getOpcode();
}
-TTI::OperandValueInfo BoUpSLP::getOperandInfo(ArrayRef<Value *> Ops) {
+TargetTransformInfo::OperandValueInfo
+BoUpSLP::getOperandInfo(ArrayRef<Value *> Ops) {
assert(!Ops.empty());
const auto *Op0 = Ops.front();
More information about the llvm-commits
mailing list