[all-commits] [llvm/llvm-project] 6227f0: [SimpleLoopUnswitch] Update DefaultExit condition ...

Alina Sbirlea via All-commits all-commits at lists.llvm.org
Thu May 7 13:49:41 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 6227f021ad400cc604ca2d15d3639eabfd66a2d9
      https://github.com/llvm/llvm-project/commit/6227f021ad400cc604ca2d15d3639eabfd66a2d9
  Author: Alina Sbirlea <asbirlea at google.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

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

  Log Message:
  -----------
  [SimpleLoopUnswitch] Update DefaultExit condition to check unreachable is not empty.

Summary:
Update the check for the default exit block to not only check that the
terminator is not unreachable, but also check that unreachable block has
*only* the unreachable instruction.

Reviewers: chandlerc

Subscribers: hiraditya, uabelho, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list