[llvm] 40cc96e - [VPlan] Remove unused VPWidenCanonicalIVRecipe::getScalarType (NFCI).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Fri May 3 07:51:14 PDT 2024
Author: Florian Hahn
Date: 2024-05-03T15:49:20+01:00
New Revision: 40cc96e7ece74479957ae5680b9e04b7743a000c
URL: https://github.com/llvm/llvm-project/commit/40cc96e7ece74479957ae5680b9e04b7743a000c
DIFF: https://github.com/llvm/llvm-project/commit/40cc96e7ece74479957ae5680b9e04b7743a000c.diff
LOG: [VPlan] Remove unused VPWidenCanonicalIVRecipe::getScalarType (NFCI).
After a48ebb8276408fa88cf7060ddc68f4eda1b62def, the function is no
longer used. Remove it.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 67059bc17c7ca4..461d7ec59862ad 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -2710,12 +2710,6 @@ class VPWidenCanonicalIVRecipe : public VPSingleDefRecipe {
void print(raw_ostream &O, const Twine &Indent,
VPSlotTracker &SlotTracker) const override;
#endif
-
- /// Returns the scalar type of the induction.
- const Type *getScalarType() const {
- return cast<VPCanonicalIVPHIRecipe>(getOperand(0)->getDefiningRecipe())
- ->getScalarType();
- }
};
/// A recipe for converting the input value \p IV value to the corresponding
More information about the llvm-commits
mailing list