[PATCH] D62263: [DAGCombine][X86][AArch64][AMDGPU] (x - y) + -1 -> add (xor y, -1), x fold

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 23 10:11:15 PDT 2019


lebedev.ri updated this revision to Diff 201007.
lebedev.ri marked 2 inline comments as done.
lebedev.ri added a comment.

Fix the fold (:


Repository:
  rL LLVM

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

https://reviews.llvm.org/D62263

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/AArch64/xor.ll
  test/CodeGen/AMDGPU/llvm.amdgcn.s.barrier.ll
  test/CodeGen/X86/xor.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62263.201007.patch
Type: text/x-patch
Size: 10566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190523/b581c1d6/attachment.bin>


More information about the llvm-commits mailing list