[PATCH] D150922: [KnownBits] Return `0` for poison {s,u}div inputs

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 19 12:30:15 PDT 2023


nikic added a comment.

IMHO we shouldn't go of the way to handle such cases -- if we need to handle this for other reasons (e.g. for shift amounts, or for conflicts) that's one thing, but explicitly checking for poison result for known constant cases is pretty pointless -- those will get folded to actual poison values by code that can do so.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D150922



More information about the llvm-commits mailing list