[all-commits] [llvm/llvm-project] c37b1a: [RLEV] Pick a correct insert point when incoming i...

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Aug 29 11:46:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c37b1a5f764380f83ba08ae0cebca2b162123eb6
      https://github.com/llvm/llvm-project/commit/c37b1a5f764380f83ba08ae0cebca2b162123eb6
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2022-08-29 (Mon, 29 Aug 2022)

  Changed paths:
    M llvm/lib/Transforms/Utils/LoopUtils.cpp
    M llvm/test/Transforms/IndVarSimplify/rewrite-loop-exit-value.ll

  Log Message:
  -----------
  [RLEV] Pick a correct insert point when incoming instruction is itself a phi node

This fixes https://github.com/llvm/llvm-project/issues/57336. It was exposed by a recent SCEV change, but appears to have been a long standing issue.

Note that the whole insert into the loop instead of a split exit edge is slightly contrived to begin with; it's there solely because IndVarSimplify preserves the CFG.

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




More information about the All-commits mailing list