[all-commits] [llvm/llvm-project] f661ce: [LoopPredication] Fix MemorySSA crash in predicate...

annamthomas via All-commits all-commits at lists.llvm.org
Thu Sep 2 18:26:20 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f661ce209f190c993bc8635adba5476edbe90a4a
      https://github.com/llvm/llvm-project/commit/f661ce209f190c993bc8635adba5476edbe90a4a
  Author: Anna Thomas <anna at azul.com>
  Date:   2021-09-02 (Thu, 02 Sep 2021)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopPredication.cpp
    M llvm/test/Transforms/LoopPredication/predicate-exits.ll

  Log Message:
  -----------
  [LoopPredication] Fix MemorySSA crash in predicateLoopExits

The attached testcase crashes without the patch (Not the same accesses
in the same order).

When we move instructions before another instruction, we also need to
update the memory accesses corresponding to it.

Reviewed-By: asbirlea
Differential Revision: https://reviews.llvm.org/D109197




More information about the All-commits mailing list