[PATCH] D60395: [InstCombine] Canonicalize (-X s/ Y) to -(X s/ Y)
ChenZheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 9 09:20:59 PDT 2019
shchenz added a comment.
In D60395#1459781 <https://reviews.llvm.org/D60395#1459781>, @lebedev.ri wrote:
> In D60395#1459712 <https://reviews.llvm.org/D60395#1459712>, @shchenz wrote:
>
> > address comments.
>
>
> Ok, thank you, looks good now.
>
> In D60395#1458897 <https://reviews.llvm.org/D60395#1458897>, @lebedev.ri wrote:
>
> > ----------------------------------------
> > Optimization: nsw preserved
> > Precondition: true
> > %o0 = sub nsw i8 0, %x
> > %r = srem i8 %o0, %y
> > =>
> > %n0 = srem i8 %x, %y
> > %r = sub nsw i8 0, %n0
> >
> > Done: 1
> > Optimization is correct!
> >
>
>
> @shchenz if you don't intend to immediately-ish submit a patch for that sibling pattern, could you please file a bug?
Sure, https://bugs.llvm.org/show_bug.cgi?id=41443 is filed.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60395/new/
https://reviews.llvm.org/D60395
More information about the llvm-commits
mailing list