[all-commits] [llvm/llvm-project] 4e8e5d: [CSInfo][NFC] Interpret loaded parameter value sep...

Djordje Todorovic via All-commits all-commits at lists.llvm.org
Tue Jun 2 04:05:35 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4e8e5d60b46ea80fa66316164820c6bf781b6ee3
      https://github.com/llvm/llvm-project/commit/4e8e5d60b46ea80fa66316164820c6bf781b6ee3
  Author: Djordje Todorovic <djordje.todorovic at syrmia.com>
  Date:   2020-06-02 (Tue, 02 Jun 2020)

  Changed paths:
    M llvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp

  Log Message:
  -----------
  [CSInfo][NFC] Interpret loaded parameter value separately

The collectCallSiteParameters() method searches for instructions
which load values into registers used for parameters passing.
Previously, interpretation of those values, loaded by one such
instruction, was implemented inside collectCallSiteParameters() method.

This patch moves the interpretation code from collectCallSiteParameters()
method into a separate static method named interpretValue. New method is
called from collectCallSiteParameters() to process each instruction from
targeted instruction scope.

The collectCallSiteParameters() searches for loaded parameter value
among instructions which precede the call instruction, inside the same
basic block. When needed, new method (interpretValue) could be used for
searching any instruction scope.

This is preparation for search of parameter value, loaded inside call
delay slot.

Patch by Nikola Tesic

Differential revision: https://reviews.llvm.org/D78106




More information about the All-commits mailing list