[all-commits] [llvm/llvm-project] bb5e1c: [LoopUnroll] Reorder code to max dom tree update m...

Philip Reames via All-commits all-commits at lists.llvm.org
Thu Jun 3 10:20:37 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bb5e1c6dcb78435f8cdcaa9eb1c5af39244df491
      https://github.com/llvm/llvm-project/commit/bb5e1c6dcb78435f8cdcaa9eb1c5af39244df491
  Author: Philip Reames <listmail at philipreames.com>
  Date:   2021-06-03 (Thu, 03 Jun 2021)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUnroll.cpp

  Log Message:
  -----------
  [LoopUnroll] Reorder code to max dom tree update more obvious [nfc]

This cleans up the unroll action into two phases. Phase 1 does the mechanical act of unrolling, and leaves all conditional branches in place. Phase 2 optimizes away some of the conditional branches and then simplifies the loop. The primary benefit of the reordering is that we can delete some special cases dom tree update logic.

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




More information about the All-commits mailing list