[PATCH] D108165: [InstCombine] fold signed min/max intrinsics with negated operands

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 16 14:35:05 PDT 2021


lebedev.ri added a comment.

> adapt Negator to handle it

Hmm, thanks for the hint, i was looking for this fold for a while :)
Indeed, negator does not track NSW-ness. What we can do for the signed variant is:
https://alive2.llvm.org/ce/z/MXZXKp aka https://alive2.llvm.org/ce/z/VJwMwD


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

https://reviews.llvm.org/D108165



More information about the llvm-commits mailing list