[all-commits] [llvm/llvm-project] 85dd85: [RDA] Don't visit the BB of the instruction in get...

Sam Tebbs via All-commits all-commits at lists.llvm.org
Wed Aug 26 04:41:15 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 85dd852a0d46684883fe3b4b19e780ba5d915b06
      https://github.com/llvm/llvm-project/commit/85dd852a0d46684883fe3b4b19e780ba5d915b06
  Author: Sam Tebbs <samuel.tebbs at arm.com>
  Date:   2020-08-26 (Wed, 26 Aug 2020)

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

  Log Message:
  -----------
  [RDA] Don't visit the BB of the instruction in getReachingUniqueMIDef

If the basic block of the instruction passed to getUniqueReachingMIDef
is a transitive predecessor of itself and has a definition of the
register, the function will return that definition even if it is after
the instruction given to the function. This patch stops the function
from scanning the instruction's basic block to prevent this.

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




More information about the All-commits mailing list