Skip to content

Commit b023def

Browse files
committed
Merging r340931:
------------------------------------------------------------------------ r340931 | atanasyan | 2018-08-29 07:53:55 -0700 (Wed, 29 Aug 2018) | 6 lines [mips] Involves microMIPS's jump in the analyzable branch set Involves microMIPS's jump in the analyzable branch set to reduce some code patterns. Differential revision: https://reviews.llvm.org/D50613 ------------------------------------------------------------------------ git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_70@346735 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent fe80951 commit b023def

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

lib/Target/Mips/MipsSEInstrInfo.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -643,7 +643,7 @@ unsigned MipsSEInstrInfo::getAnalyzableBrOpc(unsigned Opc) const {
643643
Opc == Mips::BNE64 || Opc == Mips::BGTZ64 || Opc == Mips::BGEZ64 ||
644644
Opc == Mips::BLTZ64 || Opc == Mips::BLEZ64 || Opc == Mips::BC1T ||
645645
Opc == Mips::BC1F || Opc == Mips::B || Opc == Mips::J ||
646-
Opc == Mips::B_MM || Opc == Mips::BEQZC_MM ||
646+
Opc == Mips::J_MM || Opc == Mips::B_MM || Opc == Mips::BEQZC_MM ||
647647
Opc == Mips::BNEZC_MM || Opc == Mips::BEQC || Opc == Mips::BNEC ||
648648
Opc == Mips::BLTC || Opc == Mips::BGEC || Opc == Mips::BLTUC ||
649649
Opc == Mips::BGEUC || Opc == Mips::BGTZC || Opc == Mips::BLEZC ||

test/CodeGen/Mips/longbranch.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,13 @@ define void @test1(i32 signext %s) {
231231
; MICROMIPSSTATIC: # %bb.0: # %entry
232232
; MICROMIPSSTATIC-NEXT: bnezc $4, $BB0_2
233233
; MICROMIPSSTATIC-NEXT: # %bb.1: # %entry
234-
; MICROMIPSSTATIC-NEXT: j $BB0_4
235-
; MICROMIPSSTATIC-NEXT: nop
236-
; MICROMIPSSTATIC-NEXT: $BB0_2: # %entry
237234
; MICROMIPSSTATIC-NEXT: j $BB0_3
238235
; MICROMIPSSTATIC-NEXT: nop
239-
; MICROMIPSSTATIC-NEXT: $BB0_3: # %then
236+
; MICROMIPSSTATIC-NEXT: $BB0_2: # %then
240237
; MICROMIPSSTATIC-NEXT: lui $1, %hi(x)
241238
; MICROMIPSSTATIC-NEXT: li16 $2, 1
242239
; MICROMIPSSTATIC-NEXT: sw $2, %lo(x)($1)
243-
; MICROMIPSSTATIC-NEXT: $BB0_4: # %end
240+
; MICROMIPSSTATIC-NEXT: $BB0_3: # %end
244241
; MICROMIPSSTATIC-NEXT: jrc $ra
245242
;
246243
; MICROMIPSR6STATIC-LABEL: test1:

0 commit comments

Comments
 (0)