[all-commits] [llvm/llvm-project] 272ebd: [LSR] Inline getAlternateIVEnd and simplify [nfc]

Philip Reames via All-commits all-commits at lists.llvm.org
Mon Mar 20 11:22:38 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 272ebd6957ef7bd39a6c6d2aaf7249d86e09791b
  Author: Philip Reames <preames at rivosinc.com>
  Date:   2023-03-20 (Mon, 20 Mar 2023)

  Changed paths:
    M llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
    M llvm/test/Transforms/LoopStrengthReduce/lsr-term-fold-negative-testcase.ll

  Log Message:
  [LSR] Inline getAlternateIVEnd and simplify [nfc]

Also, add a comment to highlight that the "good" result on this test is accidental, and not based on a principled decision.  I matched the original behavior to make this nfc, but selecting the last legal IV is not well motivated here.

More information about the All-commits mailing list