[all-commits] [llvm/llvm-project] cff4f0: [LSR] Don't allow zero quotient as scale ref. PR56160

Max Kazantsev via All-commits all-commits at lists.llvm.org
Wed Jun 22 09:34:12 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cff4f04e2ed8f4c0a69ddbdf07f6dcbec455a3e0
      https://github.com/llvm/llvm-project/commit/cff4f04e2ed8f4c0a69ddbdf07f6dcbec455a3e0
  Author: Max Kazantsev <mkazantsev at azul.com>
  Date:   2022-06-22 (Wed, 22 Jun 2022)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    A llvm/test/Transforms/LoopStrengthReduce/pr56160.ll

  Log Message:
  -----------
  [LSR] Don't allow zero quotient as scale ref. PR56160

Scale reg should never be zero, so when the quotient is zero, we
cannot assign it there. Limit this transform to avoid this situation.

Differential Revision: https://reviews.llvm.org/D128339
Reviewed By: eopXD




More information about the All-commits mailing list