[all-commits] [llvm/llvm-project] f6de53: [NFC][StackSafety] Test that StackLifetime looks t...

ChuanqiXu9 via All-commits all-commits at lists.llvm.org
Tue Aug 18 16:21:22 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f6de5306ec658fe15b65d875bba2f506558f160d
      https://github.com/llvm/llvm-project/commit/f6de5306ec658fe15b65d875bba2f506558f160d
  Author: Chuanqi Xu <yedeng.yd at linux.alibaba.com>
  Date:   2020-08-18 (Tue, 18 Aug 2020)

  Changed paths:
    M llvm/test/Analysis/StackSafetyAnalysis/lifetime.ll

  Log Message:
  -----------
  [NFC][StackSafety] Test that StackLifetime looks through stripPointerCasts

StackLifetime class collects lifetime marker of an `alloca` by collect
the user of `BitCast` who is the user of the `alloca`. However, either
the `alloca` itself could be used with the lifetime marker or the `BitCast`
of the `alloca` could be transformed to other instructions. (e.g.,
it may be transformed to all zero reps in `InstCombine` pass).
This patch tries to fix this process in `collectMarkers` functions.

Reviewed By: vitalybuka

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




More information about the All-commits mailing list