[all-commits] [llvm/llvm-project] 02d4b3: [GlobalISel] Check if branches use the same MBB in...

Jessica Paquette via All-commits all-commits at lists.llvm.org
Tue Feb 2 15:39:24 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 02d4b365bf4f8c2cb56e5612902f6c3bb4316493
      https://github.com/llvm/llvm-project/commit/02d4b365bf4f8c2cb56e5612902f6c3bb4316493
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-02-02 (Tue, 02 Feb 2021)

  Changed paths:
    M llvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
    M llvm/test/CodeGen/AArch64/GlobalISel/prelegalizercombiner-br.mir

  Log Message:
  -----------
  [GlobalISel] Check if branches use the same MBB in matchOptBrCondByInvertingCond

If the G_BR + G_BRCOND in this combine use the same MBB, then it will infinite
loop. Don't allow that to happen.

Differential Revision: https://reviews.llvm.org/D95895




More information about the All-commits mailing list