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

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 23 05:39:49 PDT 2022


bcl5980 updated this revision to Diff 417575.
bcl5980 edited the summary of this revision.
bcl5980 added a comment.

only depth == 0 enable nsw flag


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

https://reviews.llvm.org/D122299

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  llvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
  llvm/test/Transforms/InstCombine/nsw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122299.417575.patch
Type: text/x-patch
Size: 7580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220323/57652acc/attachment.bin>


More information about the llvm-commits mailing list