[all-commits] [llvm/llvm-project] c77887: [DebugInfo][NFC] Early-exit when analyzing for sin...

Jeremy Morse via All-commits all-commits at lists.llvm.org
Wed Apr 8 04:27:31 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c77887e4d1beae537ebb43e75f119e9e3b4fbe9c
      https://github.com/llvm/llvm-project/commit/c77887e4d1beae537ebb43e75f119e9e3b4fbe9c
  Author: Jeremy Morse <jeremy.morse at sony.com>
  Date:   2020-04-08 (Wed, 08 Apr 2020)

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

  Log Message:
  -----------
  [DebugInfo][NFC] Early-exit when analyzing for single-location variables

This is a performance patch that hoists two conditions in DwarfDebug's
validThroughout to avoid a linear-scan of all instructions in a block. We
now exit early if validThrougout will never return true for the variable
location.

The first added clause filters for the two circumstances where
validThroughout will return true. The second added clause should be
identical to the one that's deleted from after the linear-scan.

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




More information about the All-commits mailing list