[all-commits] [llvm/llvm-project] 93175a: [IndVarSimplify][LoopUtils] rewriteLoopExitValues....

sjoerdmeijer via All-commits all-commits at lists.llvm.org
Mon Jan 20 01:05:18 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 93175a5caa08360ca60b417cc04c094e1ed05c76
      https://github.com/llvm/llvm-project/commit/93175a5caa08360ca60b417cc04c094e1ed05c76
  Author: Sjoerd Meijer <sjoerd.meijer at arm.com>
  Date:   2020-01-20 (Mon, 20 Jan 2020)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LoopUtils.h
    M llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
    M llvm/lib/Transforms/Utils/LoopUtils.cpp

  Log Message:
  -----------
  [IndVarSimplify][LoopUtils] rewriteLoopExitValues. NFCI

This moves `rewriteLoopExitValues()` from IndVarSimplify to LoopUtils thus
making it a generic loop utility function.  This allows to rewrite loop exit
values by just calling this function without running the whole IndVarSimplify
pass.

We use this in D72714 to rematerialise the iteration count in exit blocks, so
that we can clean-up loop update expressions inside the hardware-loops later.

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




More information about the All-commits mailing list