File tree 1 file changed +8
-8
lines changed
llvm/lib/Transforms/Vectorize 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) {
1142
1142
" can only update exiting operands to phi nodes" );
1143
1143
assert (getNumOperands () > 0 && " must have at least one operand" );
1144
1144
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 ))});
1153
1153
setOperand (0 , Exiting);
1154
1154
}
1155
1155
You can’t perform that action at this time.
0 commit comments