[PATCH] D46505: [DAGcombine] Teach the combiner about -a = ~a + 1

Amaury SECHET via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 26 05:38:07 PDT 2018


deadalnix updated this revision to Diff 148713.
deadalnix added a comment.

Use isBitwiseNot
Merge flipBooleanConstant into flipBoolean
Add more specific test cases.


Repository:
  rL LLVM

https://reviews.llvm.org/D46505

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/X86/add.ll
  test/CodeGen/X86/addcarry.ll
  test/CodeGen/X86/subcarry.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D46505.148713.patch
Type: text/x-patch
Size: 8059 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180526/ff3c40ed/attachment-0001.bin>


More information about the llvm-commits mailing list