[PATCH] D73288: [InstCombine] Move negation handling into freelyNegateValue()

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 24 13:50:10 PST 2020


nikic updated this revision to Diff 240284.
nikic edited the summary of this revision.
nikic added a comment.

Also move the ashr/lshr and trunc patterns into freelyNegateValue() and keep existing handling regarding one-use checks.


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

https://reviews.llvm.org/D73288

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73288.240284.patch
Type: text/x-patch
Size: 18897 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200124/0b94b8d3/attachment-0001.bin>


More information about the llvm-commits mailing list