diff --git a/llvm/lib/Target/ARM/ARMBaseInstrInfo.h b/llvm/lib/Target/ARM/ARMBaseInstrInfo.h index 304ccc087c22..18746b421d7b 100644 --- a/llvm/lib/Target/ARM/ARMBaseInstrInfo.h +++ b/llvm/lib/Target/ARM/ARMBaseInstrInfo.h @@ -182,7 +182,7 @@ public: virtual bool isProfitableToDupForIfCvt(MachineBasicBlock &MBB, unsigned NumCycles, const BranchProbability - &Probability) const { + &Probability) const { return NumCycles == 1; } diff --git a/llvm/test/CodeGen/ARM/domain-conv-vmovs.ll b/llvm/test/CodeGen/ARM/domain-conv-vmovs.ll index 18e169357bbf..a5c41144584c 100644 --- a/llvm/test/CodeGen/ARM/domain-conv-vmovs.ll +++ b/llvm/test/CodeGen/ARM/domain-conv-vmovs.ll @@ -79,8 +79,8 @@ define float @test_ineligible(float, float %in) { ; internal fault). call void @bar() ; CHECL: bl bar -; CHECK: vext.32 -; CHECK: vext.32 +; CHECK: vext.32 +; CHECK: vext.32 ret float %val }