[PATCH] D122299: [InstCombine] Fix missing nsw flag when fold -(x-y) to y-x

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 02:18:34 PDT 2022


nikic requested changes to this revision.
nikic added a comment.
This revision now requires changes to proceed.

This is correct if both subs are nsw: https://alive2.llvm.org/ce/z/r6UV8Q But not if only one of them is: https://alive2.llvm.org/ce/z/3_2BDj


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

https://reviews.llvm.org/D122299



More information about the llvm-commits mailing list