[PATCH] D26429: [LSR] Allow formula containing Reg for SCEVAddRecExpr with loop other than current loop

Wei Mi via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 17:49:49 PST 2016


wmi added a comment.

Quentin, thanks for the review.



================
Comment at: test/Transforms/LoopStrengthReduce/nested-loop.ll:2
+; RUN: opt -loop-reduce -disable-output -debug-only=loop-reduce < %s 2>&1 | FileCheck %s
+; REQUIRES: asserts
+
----------------
qcolombet wrote:
> qcolombet wrote:
> > Could you add a comment on what this loop is supposed to check?
> > I believe we want to stress that the relevant bit is the use of outer loop IV in inner loop. 
> Instead of parsing the debug output, could you expose a test case that takes advantage of the newly kept formulae?
> Basically, I am asking for check lines over the IR, not the debug output.
Added the comment on what the test is about to check.


================
Comment at: test/Transforms/LoopStrengthReduce/nested-loop.ll:2
+; RUN: opt -loop-reduce -disable-output -debug-only=loop-reduce < %s 2>&1 | FileCheck %s
+; REQUIRES: asserts
+
----------------
wmi wrote:
> qcolombet wrote:
> > qcolombet wrote:
> > > Could you add a comment on what this loop is supposed to check?
> > > I believe we want to stress that the relevant bit is the use of outer loop IV in inner loop. 
> > Instead of parsing the debug output, could you expose a test case that takes advantage of the newly kept formulae?
> > Basically, I am asking for check lines over the IR, not the debug output.
> Added the comment on what the test is about to check.
Ok. I changed the check to be over IR.


Repository:
  rL LLVM

https://reviews.llvm.org/D26429





More information about the llvm-commits mailing list