[all-commits] [llvm/llvm-project] 80cb2c: [utils] InlineFunction: fix for debug info affecti...

Björn Pettersson via All-commits all-commits at lists.llvm.org
Mon Oct 28 10:19:26 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 80cb2cecc65753aa1de09a09f3750408913f6450
      https://github.com/llvm/llvm-project/commit/80cb2cecc65753aa1de09a09f3750408913f6450
  Author: Bjorn Pettersson <bjorn.a.pettersson at ericsson.com>
  Date:   2019-10-28 (Mon, 28 Oct 2019)

  Changed paths:
    M llvm/lib/Transforms/Utils/InlineFunction.cpp
    A llvm/test/Transforms/Inline/inline-skip-use-empty-alloca.ll

  Log Message:
  -----------
  [utils] InlineFunction: fix for debug info affecting optimizations

Summary:
Debug info affects output from "opt -inline", InlineFunction could
not handle the llvm.dbg.value when it exist between alloca
instructions.

Problem was that the first alloca in a sequence of allocas was
handled differently from the subsequence alloca instructions. Now
all static alloca instructions are treated the same (being removed
if the have no uses). So it does not matter if there are dbg
instructions (or any other instructions) in between.

Fix the issue: https://bugs.llvm.org/show_bug.cgi?id=43291k

Patch by: yechunliang (Chris Ye)

Reviewers: bjope, jmorse, vsk, probinson, jdoerfert, mtrofin, aprantl, fhahn

Reviewed By: bjope

Subscribers: uabelho, ormris, aprantl, hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list