[llvm] c1034d0 - Follow up of rGe345d547a0d5, and attempt to pacify buildbot:
Sjoerd Meijer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 17 05:29:33 PDT 2020
Author: Sjoerd Meijer
Date: 2020-06-17T13:24:09+01:00
New Revision: c1034d044ad4e791fec18aeea35c1e03401b077d
URL: https://github.com/llvm/llvm-project/commit/c1034d044ad4e791fec18aeea35c1e03401b077d
DIFF: https://github.com/llvm/llvm-project/commit/c1034d044ad4e791fec18aeea35c1e03401b077d.diff
LOG: Follow up of rGe345d547a0d5, and attempt to pacify buildbot:
"error: 'get' is deprecated: The base class version of get with the scalable
argument defaulted to false is deprecated."
Changed VectorType::get() -> FixedVectorType::get().
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.cpp b/llvm/lib/Transforms/Vectorize/VPlan.cpp
index 1508b2e371a5..f5f28a3bffa1 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlan.cpp
@@ -387,7 +387,7 @@ void VPInstruction::generateInstruction(VPTransformState &State,
Value *ScalarBTC = State.get(getOperand(1), {Part, 0});
auto *Int1Ty = Type::getInt1Ty(Builder.getContext());
- auto *PredTy = VectorType::get(Int1Ty, State.VF);
+ auto *PredTy = FixedVectorType::get(Int1Ty, State.VF);
Instruction *Call = Builder.CreateIntrinsic(
Intrinsic::get_active_lane_mask, {PredTy, ScalarBTC->getType()},
{VIVElem0, ScalarBTC}, nullptr, "active.lane.mask");
More information about the llvm-commits
mailing list