[VPlan] Rely on VPlan opts to simplify multiply by 1 (NFCI).
This commit is contained in:
parent
11994e8da7
commit
21cca5ea9d
@ -3455,9 +3455,7 @@ void VPlanTransforms::materializeVFAndVFxUF(VPlan &Plan, VPBasicBlock *VectorPH,
|
||||
VF.replaceAllUsesWith(RuntimeVF);
|
||||
|
||||
VPValue *UF = Plan.getOrAddLiveIn(ConstantInt::get(TCTy, Plan.getUF()));
|
||||
VPValue *MulByUF = Plan.getUF() == 1 ? RuntimeVF
|
||||
: Builder.createNaryOp(Instruction::Mul,
|
||||
{RuntimeVF, UF});
|
||||
VPValue *MulByUF = Builder.createNaryOp(Instruction::Mul, {RuntimeVF, UF});
|
||||
VFxUF.replaceAllUsesWith(MulByUF);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user