[all-commits] [llvm/llvm-project] 1ce01b: [SCEVExpander] Simplify cleanup, skip sorting by d...

Florian Hahn via All-commits all-commits at lists.llvm.org
Sun Jan 9 10:39:06 PST 2022

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1ce01b7dfe8247c25b25e0ed44b7f1e41599bb43
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2022-01-09 (Sun, 09 Jan 2022)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/ScalarEvolutionExpander.h
    M llvm/lib/Transforms/Scalar/LoopIdiomRecognize.cpp
    M llvm/lib/Transforms/Utils/ScalarEvolutionExpander.cpp
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  [SCEVExpander] Simplify cleanup, skip sorting by dominance.

There is no need to sort inserted instructions by dominance, as the
deletion loop still requires RAUW with undef before deleting. Removing
instructions in reverse insertion order should still insure that the
number of uselist updates is kept to a minimum.

More information about the All-commits mailing list