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

Jessica Paquette via All-commits all-commits at lists.llvm.org
Fri Feb 12 16:21:43 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 6604c3050948d602ef24b3d3efbf9f4410494833
      https://github.com/llvm/llvm-project/commit/6604c3050948d602ef24b3d3efbf9f4410494833
  Author: Jessica Paquette <jpaquette at apple.com>
  Date:   2021-02-12 (Fri, 12 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

(cherry picked from commit 02d4b365bf4f8c2cb56e5612902f6c3bb4316493)




More information about the All-commits mailing list