[PATCH] D129650: [InstCombine] change conditions for transform of sub to xor

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 14 00:44:30 PDT 2022


nikic added a comment.

> As discussed in in D128123 <https://reviews.llvm.org/D128123>, converting sub to xor can cause codegen regressions, and it may not be reversible with respect to no-wrap as shown here:
> https://alive2.llvm.org/ce/z/CgOlZU

Your example seems to show that nsw can be removed, only nuw can't be?


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

https://reviews.llvm.org/D129650



More information about the llvm-commits mailing list