From 3f7f06888b26a910b1c39bd43601eb426c89c3e1 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Tue, 14 Apr 2020 09:36:16 +0100 Subject: [PATCH] [VPlan] Branches are not widened by VPWidenRecipe, assert (NFC). --- llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp index 0107f5a2aadd..35ed4c04455e 100644 --- a/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp +++ b/llvm/lib/Transforms/Vectorize/LoopVectorize.cpp @@ -6930,8 +6930,8 @@ VPRecipeBuilder::tryToWidenCall(Instruction *I, VFRange &Range, VPlan &Plan) { } bool VPRecipeBuilder::shouldWiden(Instruction *I, VFRange &Range) const { - assert(!isa(I) && !isa(I) && !isa(I) && - "Instruction should have been handled earlier"); + assert(!isa(I) && !isa(I) && !isa(I) && + !isa(I) && "Instruction should have been handled earlier"); // Instruction should be widened, unless it is scalar after vectorization, // scalarization is profitable or it is predicated. auto WillScalarize = [this, I](unsigned VF) -> bool { @@ -6961,7 +6961,6 @@ VPWidenRecipe *VPRecipeBuilder::tryToWiden(Instruction *I, VPlan &Plan) { case Instruction::And: case Instruction::AShr: case Instruction::BitCast: - case Instruction::Br: case Instruction::FAdd: case Instruction::FCmp: case Instruction::FDiv: