[PATCH] D158510: [InstCombine] Propagate nsw flag when negating

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 02:49:15 PDT 2023


nikic updated this revision to Diff 552640.
nikic marked 4 inline comments as done.
nikic edited the summary of this revision.
nikic added a comment.

Handle freeze, handle nsw in mul by neg pow 2 fold.


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

https://reviews.llvm.org/D158510

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D158510.552640.patch
Type: text/x-patch
Size: 20650 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230823/41f960c7/attachment.bin>


More information about the llvm-commits mailing list