[all-commits] [llvm/llvm-project] 8e6296: [Attributor] Identify dead uses in PHIs (almost) b...

Johannes Doerfert via All-commits all-commits at lists.llvm.org
Tue Feb 11 13:19:04 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e62968d45429815411ca9bb358a913dde7b1152
      https://github.com/llvm/llvm-project/commit/8e62968d45429815411ca9bb358a913dde7b1152
  Author: Johannes Doerfert <johannes at jdoerfert.de>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M llvm/lib/Transforms/IPO/Attributor.cpp

  Log Message:
  -----------
  [Attributor] Identify dead uses in PHIs (almost) based on dead edges

As an approximation to a dead edge we can check if the terminator is
dead. If so, the corresponding operand use in a PHI node is dead even if
the PHI node itself is not.




More information about the All-commits mailing list