File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1142,14 +1142,14 @@ void VPIRInstruction::extractLastLaneOfFirstOperand(VPBuilder &Builder) {
11421142 " can only update exiting operands to phi nodes" );
11431143 assert (getNumOperands () > 0 && " must have at least one operand" );
11441144 VPValue *Exiting = getOperand (0 );
1145- if (! Exiting->isLiveIn ()) {
1146- LLVMContext &Ctx = getInstruction (). getContext () ;
1147- auto &Plan = * getParent ()-> getPlan ();
1148- Exiting = Builder. createNaryOp (
1149- VPInstruction::ExtractFromEnd,
1150- {Exiting ,
1151- Plan.getOrAddLiveIn (ConstantInt::get (IntegerType::get (Ctx, 32 ), 1 ))});
1152- }
1145+ if (Exiting->isLiveIn ())
1146+ return ;
1147+
1148+ LLVMContext &Ctx = getInstruction (). getContext ();
1149+ auto &Plan = * getParent ()-> getPlan ();
1150+ Exiting = Builder. createNaryOp (VPInstruction::ExtractFromEnd ,
1151+ {Exiting, Plan.getOrAddLiveIn (ConstantInt::get (
1152+ IntegerType::get (Ctx, 32 ), 1 ))});
11531153 setOperand (0 , Exiting);
11541154}
11551155
You can’t perform that action at this time.
0 commit comments