[all-commits] [llvm/llvm-project] 1d0917: [LoopStrengthReduce] Reuse utility method to clean...

Alina Sbirlea via All-commits all-commits at lists.llvm.org
Thu Jan 23 16:28:05 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 1d091742908fddb458023492c43ee4e4492609bc
      https://github.com/llvm/llvm-project/commit/1d091742908fddb458023492c43ee4e4492609bc
  Author: Alina Sbirlea <asbirlea at google.com>
  Date:   2020-01-23 (Thu, 23 Jan 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/Local.h
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    M llvm/lib/Transforms/Utils/Local.cpp

  Log Message:
  -----------
  [LoopStrengthReduce] Reuse utility method to clean dead instructions. [NFCI]

Create a utility wrapper for the RecursivelyDeleteTriviallyDeadInstructions utility
method, which sets to nullptr the instructions that are not trivially
dead. Use the new method in LoopStrengthReduce.
Alternative: add a bool to the same method; this option adds a marginal
amount of overhead to the other callers, and the method needs to be
updated to return a bool status when it removes/doesn't remove
instructions.




More information about the All-commits mailing list