[llvm] [AVR] Fix a crash in AVRInstrInfo::insertIndirectBranch (PR #67324)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 04:13:40 PDT 2023
================
@@ -7,6 +8,15 @@
; CHECK: [[BB1]]:
; CHECK: nop
; CHECK: [[BB2]]:
+
+; AVR2-LABEL: relax_to_jmp:
+; AVR2: cpi r{{[0-9]+}}, 0
+; AVR2: brne [[BB1:.LBB[0-9]+_[0-9]+]]
+; AVR2: rjmp [[BB2:.LBB[0-9]+_[0-9]+]]
+; AVR2: [[BB1]]:
+; AVR2: nop
+; AVR2: [[BB2]]:
----------------
aykevl wrote:
I think a comment explaining why `rjmp` is intended would be a good idea, to help future people working on this code.
https://github.com/llvm/llvm-project/pull/67324
More information about the llvm-commits
mailing list