[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
Wed May 22 10:31:14 PDT 2019


lebedev.ri created this revision.
lebedev.ri added reviewers: RKSimon, craig.topper, spatel, arsenm.
lebedev.ri added a project: LLVM.
Herald added subscribers: kristof.beyls, t-tye, tpr, dstuttard, javed.absar, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.

This prevents regressions in next patch,
and somewhat recovers from the regression to AMDGPU test in D62223 <https://reviews.llvm.org/D62223>.

https://rise4fun.com/Alive/ZRl


Repository:
  rL LLVM

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.200785.patch
Type: text/x-patch
Size: 10463 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190522/4ed495ae/attachment-0001.bin>


More information about the llvm-commits mailing list