[all-commits] [llvm/llvm-project] 31cdb2: [DSE, MemorySSA] Return early when hitting a Memory...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sat Aug 29 10:30:38 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 31cdb29de46d08af3b721ce62377b6faa614cc32
      https://github.com/llvm/llvm-project/commit/31cdb29de46d08af3b721ce62377b6faa614cc32
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-08-29 (Sat, 29 Aug 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

  Log Message:
  -----------
  [DSE,MemorySSA] Return early when hitting a MemoryPhi.

A MemoryPhi can never be eliminated. If we hit one, return the Phi, so
the caller can continue traversing the incoming accesses.

This saves some unnecessary read clobber checks and improves
compile-time
http://llvm-compile-time-tracker.com/compare.php?from=1ffc58b6d098ce8fa71f3a80fe75b990f633f921&to=d0fa8d1982380b57d7b6067528104bc373dbe07a&stat=instructions




More information about the All-commits mailing list