[PATCH] D106745: [DAG] DAGCombiner::useDivRem - recognise sub(X,mul(div(X,Y),Y)) as a rem(X,Y)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Jul 24 06:38:31 PDT 2021


lebedev.ri added inline comments.


================
Comment at: llvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll:977
 
 define i32 @negative_different_x(i32 %x0, i32 %x1, i32 %y, i32* %divdst) nounwind {
 ; X86-LABEL: negative_different_x:
----------------
Could use a test with mismatching y's too, and both of them.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D106745



More information about the llvm-commits mailing list