[PATCH] D98449: [RISCV] Add isel-patterns to optimize (a < 1) into bgez

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 08:23:28 PST 2021


craig.topper added a comment.

In D98449#2621957 <https://reviews.llvm.org/D98449#2621957>, @jrtc27 wrote:

> This feels like it should be a target-independent DAGCombine?

DAG combine and instcombine canonicalize to constants on the RHS and SETGT, SETLT, SETUGT, and SETULT. So X <= 0 will always be rewritten to X< 1.


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

https://reviews.llvm.org/D98449



More information about the llvm-commits mailing list