[all-commits] [llvm/llvm-project] cc65f3: [GlobalOpt] Preserve CFG analyses

aeubanks via All-commits all-commits at lists.llvm.org
Sun Jun 19 16:13:33 PDT 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cc65f3e167144c39ef9ca3a69c3148b71dcab496
  Author: Arthur Eubanks <aeubanks at google.com>
  Date:   2022-06-19 (Sun, 19 Jun 2022)

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

  Log Message:
  [GlobalOpt] Preserve CFG analyses

The only place we modify the CFG is when calling
removeUnreachableBlocks(), so insert a callback there which invalidates
analyses for that function (or recomputes DT in the legacy PM).

Small compile time wins across the board:

Reviewed By: nikic

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

More information about the All-commits mailing list