[all-commits] [llvm/llvm-project] 8f92f3: [RDA] Fix DBG_VALUE issues

Sam Parker via All-commits all-commits at lists.llvm.org
Tue Aug 11 01:03:44 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8f92f3c2eab02fe17a03fc39fefa0082b1c4b72f
      https://github.com/llvm/llvm-project/commit/8f92f3c2eab02fe17a03fc39fefa0082b1c4b72f
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2020-08-11 (Tue, 11 Aug 2020)

  Changed paths:
    M llvm/lib/CodeGen/ReachingDefAnalysis.cpp

  Log Message:
  -----------
  [RDA] Fix DBG_VALUE issues

We skip debug instructions in RDA so we cannot attempt to look them
up in our instruction map without causing a crash. But some of the
methods select the last instruction in the block and this
instruction may be a debug instruction... So, use getLastNonDebugInstr
instead of calling back on a MachineBasicBlock.

MachineBasicBlock iterators have also been updated to use
instructionsWithoutDebug so we can avoid the manual checks for debug
instructions.

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




More information about the All-commits mailing list