[PATCH] D45734: [reassociate] Fix excessive revisits when processing long chains of reassociatable instructions.
Daniel Sanders via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 2 10:28:37 PDT 2018
dsanders added inline comments.
================
Comment at: test/Transforms/Reassociate/long-chains.ll:31
+; CHECK: 55 reassociate - Number of insts reassociated
+; CHECK: 3 reassociate - Number of multiplies factored
----------------
dberlin wrote:
> dsanders wrote:
> > dberlin wrote:
> > > Is it possible to check the number of visits is within a range?
> > >
> > > (IE 100-200, and not 1 million)?
> > >
> > > I don't remember if lit can do this :(
> > I don't think it can do ranges but orders of magnitude are possible by matching a fixed number of digits with something like:
> > ; CHECK: {{[1-9][0-9]}} reassociate - Number of insts reassociated
> > Would you like me to change it to that?
> Yeah, why don't we do that just so it doesn't get messed up by random changes.
> We really care about the order of magnitude, not the exact number.
>
> (I think :-P)
Ok. For the `Number of insts reassociated` checks I'll go with [1-9][0-9] (effectively >=10 and <= 99) and for the `Number of multiplies factored` I'll go with [3-9] so the number of changes made can't go down without us noticing.
Repository:
rL LLVM
https://reviews.llvm.org/D45734
More information about the llvm-commits
mailing list