[all-commits] [llvm/llvm-project] 999307: [StackSafety] Fix byval handling

Vitaly Buka via All-commits all-commits at lists.llvm.org
Thu Jun 11 20:58:54 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 999307323a456d5da958b4e2dd72874451487482
      https://github.com/llvm/llvm-project/commit/999307323a456d5da958b4e2dd72874451487482
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2020-06-11 (Thu, 11 Jun 2020)

  Changed paths:
    M llvm/lib/Analysis/StackSafetyAnalysis.cpp
    M llvm/test/Analysis/StackSafetyAnalysis/local.ll

  Log Message:
  -----------
  [StackSafety] Fix byval handling

We don't need process paramenters which marked as
byval as we are not going to pass interested allocas
without copying.

If we pass value into byval argument, we just handle that
as Load of corresponding type and stop that branch of analysis.




More information about the All-commits mailing list