[PATCH] D87196: [InstCombine] Fold abs of known negative operand

Nikita Popov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 5 08:57:00 PDT 2020


nikic updated this revision to Diff 290098.
nikic added a comment.

Invert return value of getKnownSign().


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

https://reviews.llvm.org/D87196

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
  llvm/test/Transforms/InstCombine/abs-intrinsic.ll
  llvm/test/Transforms/InstSimplify/abs_intrinsic.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87196.290098.patch
Type: text/x-patch
Size: 5676 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200905/74505262/attachment.bin>


More information about the llvm-commits mailing list