[all-commits] [llvm/llvm-project] 95aa28: Mark values as trivially dead when their only use ...

Zoe Carver via All-commits all-commits at lists.llvm.org
Wed May 6 10:58:30 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 95aa28cc8fcbcb43a047779814a5be0abe54863b
      https://github.com/llvm/llvm-project/commit/95aa28cc8fcbcb43a047779814a5be0abe54863b
  Author: zoecarver <z.zoelec2 at gmail.com>
  Date:   2020-05-06 (Wed, 06 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Utils/Local.cpp
    M llvm/test/Transforms/Attributor/memory_locations.ll
    M llvm/test/Transforms/DCE/basic.ll
    M llvm/test/Transforms/DeadStoreElimination/lifetime.ll
    M llvm/test/Transforms/InstCombine/vararg.ll

  Log Message:
  -----------
  Mark values as trivially dead when their only use is a start or end lifetime intrinsic.

Summary:
If the only use of a value is a start or end lifetime intrinsic then mark the intrinsic as trivially dead. This should allow for that value to then be removed as well.

Currently, this only works for allocas, globals, and arguments.

Subscribers: hiraditya, llvm-commits

Tags: #llvm

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




More information about the All-commits mailing list