[PATCH] D136415: [LSR] Check if terminating value is safe to expand before transformation

Jiejie Rong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 26 23:57:15 PDT 2022


JojoR added inline comments.


================
Comment at: llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp:6825
       // TermValue = Start + Stride * (BackedgeCount + 1)
       const SCEV *TermValueS = SE.getAddExpr(
           AddRec->getOperand(0),
----------------
The patch looks good to me,
but the implementation is redundant with here ?
it should merge into one ?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136415/new/

https://reviews.llvm.org/D136415



More information about the llvm-commits mailing list