[all-commits] [llvm/llvm-project] 38e888: [IROutliner] Do not outlined from functions with o...

Andrew Litteken via All-commits all-commits at lists.llvm.org
Sun Mar 20 21:39:45 PDT 2022


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

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

  Log Message:
  -----------
  [IROutliner] Do not outlined from functions with optnone

Since the IROutliner is performing an optimization, it should not outline from functions explicitly marked with optnone. This adds an extra check and test to make sure this does not occur.

Reviewers: paquette

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




More information about the All-commits mailing list