[PATCH] D157187: [InstCombine] Propagate the nsw for instruction neg-sub

Allen zhong via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 7 07:24:16 PDT 2023


Allen updated this revision to Diff 547778.
Allen marked an inline comment as done.
Allen added a comment.

pass through the nsw flag from the caller  to avoid inspecting users according comment


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

https://reviews.llvm.org/D157187

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/abs-intrinsic.ll
  llvm/test/Transforms/InstCombine/nsw.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157187.547778.patch
Type: text/x-patch
Size: 10236 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230807/e59bf29d/attachment.bin>


More information about the llvm-commits mailing list