[all-commits] [llvm/llvm-project] f5224d: [LoopFusion] Remove unreachable blocks from DT and...

Diego Caballero via All-commits all-commits at lists.llvm.org
Thu May 7 16:52:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: f5224d437eace9593b64ef2eff501df397bce6a8
      https://github.com/llvm/llvm-project/commit/f5224d437eace9593b64ef2eff501df397bce6a8
  Author: Diego Caballero <diego.caballero at intel.com>
  Date:   2020-05-07 (Thu, 07 May 2020)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopFuse.cpp
    A llvm/test/Transforms/LoopFusion/double_loop_nest_inner_guard.ll
    A llvm/test/Transforms/LoopFusion/triple_loop_nest_inner_guard.ll

  Log Message:
  -----------
  [LoopFusion] Remove unreachable blocks from DT and LI after fusion

This patch removes FC0.ExitBlock and FC1GuardBlock from DT and LI
after fusion of guarded loops. They become unreachable and LI
verification failed when they happened to be inside another loop.

Reviewed By: kbarton

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




More information about the All-commits mailing list