[all-commits] [llvm/llvm-project] bc00f4: [LoopSink] Do not try to sink phi nodes.

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Mar 6 03:16:45 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bc00f47c016a9042138d16a5ead9147c631396e5
      https://github.com/llvm/llvm-project/commit/bc00f47c016a9042138d16a5ead9147c631396e5
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-03-06 (Sun, 06 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopSink.cpp
    A llvm/test/Transforms/LICM/loop-sink-phi-in-preheader.ll

  Log Message:
  -----------
  [LoopSink] Do not try to sink phi nodes.

Skip phi nodes in the preheader. They may not be considered loop
invariant by the assertion below.

Reviewed By: reames

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




More information about the All-commits mailing list