diff options
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/BPF/BPFMIPeephole.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/llvm/lib/Target/BPF/BPFMIPeephole.cpp b/llvm/lib/Target/BPF/BPFMIPeephole.cpp index 3df14b4ad5b..7d84b2834f8 100644 --- a/llvm/lib/Target/BPF/BPFMIPeephole.cpp +++ b/llvm/lib/Target/BPF/BPFMIPeephole.cpp @@ -156,12 +156,10 @@ bool BPFMIPeephole::eliminateCmpPromotionSeq(void) { case BPF::JNE_rr: Reg = MI.getOperand(1).getReg(); Mov = getInsnDefZExtSubReg(Reg); - if (!Mov) - break; - - updateInsnSeq(MBB, MI, Reg); - Eliminated = true; - + if (Mov) { + updateInsnSeq(MBB, MI, Reg); + Eliminated = true; + } // Fallthrough case BPF::JUGT_ri: case BPF::JUGE_ri: |