[all-commits] [llvm/llvm-project] 31a0b2: [AMDGPU] Fix iterating in SIFixSGPRCopies

Sebastian Neubauer via All-commits all-commits at lists.llvm.org
Wed Nov 4 09:43:42 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 31a0b2834f885b61d3d278c01e376c3856230056
      https://github.com/llvm/llvm-project/commit/31a0b2834f885b61d3d278c01e376c3856230056
  Author: Sebastian Neubauer <sebastian.neubauer at amd.com>
  Date:   2020-11-04 (Wed, 04 Nov 2020)

  Changed paths:
    M llvm/lib/Target/AMDGPU/SIFixSGPRCopies.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
    M llvm/lib/Target/AMDGPU/SIInstrInfo.h
    M llvm/test/CodeGen/AMDGPU/indirect-call.ll

  Log Message:
  -----------
  [AMDGPU] Fix iterating in SIFixSGPRCopies

The insertion of waterfall loops splits the current basic block into
three blocks. So the basic block that we iterate over must be updated.

This failed assert(!NodePtr->isKnownSentinel()) in ilist_iterator for
divergent calls in branches before.

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




More information about the All-commits mailing list