[all-commits] [llvm/llvm-project] 224707: AMDGPU/GlobalISel: Set insert point when emitting ...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Jun 11 15:53:46 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2247072b658bda4673221aee87347fdb75fbda6c
      https://github.com/llvm/llvm-project/commit/2247072b658bda4673221aee87347fdb75fbda6c
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
    M llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-brcond.mir

  Log Message:
  -----------
  AMDGPU/GlobalISel: Set insert point when emitting control flow pseudos

This was implicitly assuming the branch instruction was the next after
the pseudo. It's possible for another non-terminator instruction to be
inserted between the intrinsic and the branch, so adjust the insertion
point. Fixes a non-terminator after terminator verifier error (which
without the verifier, manifested itself as an infinite loop in
analyzeBranch much later on).




More information about the All-commits mailing list