[PATCH] D133198: [SCCP] convert signed div/rem to unsigned for non-negative operands

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 4 10:25:11 PDT 2022


bcl5980 added a comment.

Should we do this in Instcombine also? Like check Known.isNonNegative() for LHS and RHS in instcombine?
SCCP can work on the cases with dominated condition. And Instcombine with value tracking also help the case like abs or and a mask without sign bits?


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

https://reviews.llvm.org/D133198



More information about the llvm-commits mailing list