[PATCH] D136237: [BasicBlockSections] avoid insertting redundant branch to fall through blocks

Sinan Lin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 7 00:36:19 PST 2022


sinan added a comment.

Hi @rahmanl, Sorry for the delay. I did not find any countercase for just checking the last terminator, and I spent some time investigating a pattern:

  jne  func.part2
  jmp func.part1
  nop
  nop

and it turns out that the nops are inserted during emitting asm.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136237/new/

https://reviews.llvm.org/D136237



More information about the llvm-commits mailing list