[all-commits] [llvm/llvm-project] b341c4: [SimpleLoopUnswitch] Check if freeze is needed for...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Apr 22 13:27:35 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b341c440102d1182953f7a23be2c457d1fda8b6d
      https://github.com/llvm/llvm-project/commit/b341c440102d1182953f7a23be2c457d1fda8b6d
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-04-22 (Fri, 22 Apr 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/SimpleLoopUnswitch.cpp
    M llvm/test/Transforms/SimpleLoopUnswitch/nontrivial-unswitch-freeze.ll

  Log Message:
  -----------
  [SimpleLoopUnswitch] Check if freeze is needed for partial unswitching.

We only need to insert a Freeze instruction if any of the conditions
may be poison. Similar checks are already done in the other places
SimpleLoopUnswitch creates Freeze instruction.

Reviewed By: aeubanks, efriedma

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




More information about the All-commits mailing list