[PATCH] D25485: [DAG] optimize negation of bool

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 17 10:45:19 PDT 2016


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

Patch updated:
Rebased after https://reviews.llvm.org/rL284395 so we no longer have the unnecessary 'sar' in the x86-32 test as noted by Zvi.
The vector side of that fold needs more work and is currently up for review with https://reviews.llvm.org/D25685.


https://reviews.llvm.org/D25485

Files:
  lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
  test/CodeGen/ARM/negate-i1.ll
  test/CodeGen/Mips/llvm-ir/add.ll
  test/CodeGen/Mips/llvm-ir/mul.ll
  test/CodeGen/Mips/llvm-ir/sdiv.ll
  test/CodeGen/Mips/llvm-ir/srem.ll
  test/CodeGen/Mips/llvm-ir/sub.ll
  test/CodeGen/Mips/llvm-ir/urem.ll
  test/CodeGen/Mips/select.ll
  test/CodeGen/PowerPC/negate-i1.ll
  test/CodeGen/SystemZ/branch-07.ll
  test/CodeGen/SystemZ/risbg-01.ll
  test/CodeGen/SystemZ/shift-10.ll
  test/CodeGen/X86/negate-i1.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25485.74870.patch
Type: text/x-patch
Size: 23430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161017/7c7e5162/attachment.bin>


More information about the llvm-commits mailing list