[all-commits] [llvm/llvm-project] dbf6ab: [LSR] Fix bug for optimizing unused IVs to final v...

syzaara via All-commits all-commits at lists.llvm.org
Tue Jul 5 09:31:24 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dbf6ab5ef9ae0e1f4706917c2b3f98a67c35826e
      https://github.com/llvm/llvm-project/commit/dbf6ab5ef9ae0e1f4706917c2b3f98a67c35826e
  Author: Zaara Syeda <syzaara at ca.ibm.com>
  Date:   2022-07-05 (Tue, 05 Jul 2022)

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

  Log Message:
  -----------
  [LSR] Fix bug for optimizing unused IVs to final values

This is a fix for a crash reported for https://reviews.llvm.org/D118808
The fix is to only consider PHINodes which are induction phis.
Fixes #55529

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




More information about the All-commits mailing list