[PATCH] D157598: [InstCombine] Transform sub(sext(add(X, Y)), sext(add(X, Z))) to sub(Y, Z) given nsw adds

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 21 00:04:07 PDT 2023


dmgreen updated this revision to Diff 551909.
dmgreen marked 5 inline comments as done.
dmgreen added a comment.

Thanks for the review. Updated for one use checks and commutivity. This might start to get stranger in a followup but this part should hopefully be sensible enough on it's own.


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

https://reviews.llvm.org/D157598

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/test/Transforms/InstCombine/sub-ext-add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157598.551909.patch
Type: text/x-patch
Size: 8441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230821/ff19f1e7/attachment.bin>


More information about the llvm-commits mailing list