[PATCH] D133369: [InstCombine] fold add+negate through select into sub

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 6 14:09:32 PDT 2022


spatel updated this revision to Diff 458278.
spatel added a comment.

Patch updated:
Changed the check for simplified operands to do what the code comment says. I couldn't think of a test to show a failure given the other constraints.


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

https://reviews.llvm.org/D133369

Files:
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/add.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D133369.458278.patch
Type: text/x-patch
Size: 8464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220906/957dcaac/attachment.bin>


More information about the llvm-commits mailing list