[all-commits] [llvm/llvm-project] 0b3a6c: [IROutliner] Handling outlined code with no exit p...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Wed Mar 9 10:44:12 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0b3a6c8d20d1402f68ac2554a1e6909af19b52fd
      https://github.com/llvm/llvm-project/commit/0b3a6c8d20d1402f68ac2554a1e6909af19b52fd
  Author: Andrew Litteken <andrew.litteken at gmail.com>
  Date:   2022-03-09 (Wed, 09 Mar 2022)

  Changed paths:
    M llvm/lib/Transforms/IPO/IROutliner.cpp
    A llvm/test/Transforms/IROutliner/outlining-no-return-functions.ll

  Log Message:
  -----------
  [IROutliner] Handling outlined code with no exit paths

As a result of adding multiblock outlining, it became possible to outline the entirety of basic block, and branches that only pointed to the basic blocks contained in the outlined section. This means that there are no exit paths, and no return statement. There was a previous assertion from the older version of the outliner that explicitly made sure there was a return statement. This removes that assertion.

Reviewers: paquette

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




More information about the All-commits mailing list