[all-commits] [llvm/llvm-project] ef4dbb: [LV] Use ScalarEvolution::getURemExpr to reduce du...

Florian Hahn via All-commits all-commits at lists.llvm.org
Tue Dec 22 06:52:46 PST 2020


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef4dbb2b7a85b47bfd84188bd1c6a9eddc5c536b
      https://github.com/llvm/llvm-project/commit/ef4dbb2b7a85b47bfd84188bd1c6a9eddc5c536b
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2020-12-22 (Tue, 22 Dec 2020)

  Changed paths:
    M llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

  Log Message:
  -----------
  [LV] Use ScalarEvolution::getURemExpr to reduce duplication.

ScalarEvolution should be able to handle both constant and variable trip
counts using getURemExpr, so we do not have to handle them separately.

This is a small simplification of a56280094e08.

Reviewed By: gilr

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




More information about the All-commits mailing list