[PATCH] D127335: [SelectionDAG] Teach computeKnownBits that a nsw self multiply produce a positive value.

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 8 12:41:31 PDT 2022


spatel accepted this revision.
spatel added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/test/CodeGen/RISCV/rv64i-demanded-bits.ll:29
+; The sign bit of an nsw self multiply is 0. Make sure we can use this to
+; conver the AND constant to -8.
+define i64 @mul_self_nsw_sign(i64 %x) {
----------------
typo: convert


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D127335



More information about the llvm-commits mailing list