[PATCH] D59758: [DAGCombiner] Combine OR as ADD when no common bits are set

Bjorn Pettersson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 3 08:58:13 PDT 2019


bjope updated this revision to Diff 193514.
bjope added a comment.

Updated according to suggestion from @RKSimon, i.e. moving the combines only
done for ADD into the visitADD function.

I also renamed the old visitADDLike method to visitADDLikeCommutative, and the
new method visitADDorNoCommonBitsOR (from earlier version of this patch) is
now called visitADDLike.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D59758

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AMDGPU/calling-conventions.ll
  llvm/test/CodeGen/AMDGPU/sminmax.v2i16.ll
  llvm/test/CodeGen/AMDGPU/widen-smrd-loads.ll
  llvm/test/CodeGen/Hexagon/subi-asl.ll
  llvm/test/CodeGen/X86/scheduler-backtracking.ll
  llvm/test/CodeGen/X86/signbit-shift.ll
  llvm/test/CodeGen/X86/split-store.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59758.193514.patch
Type: text/x-patch
Size: 19485 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190403/ee55bb6b/attachment.bin>


More information about the llvm-commits mailing list