[PATCH] D50636: [DAGCombiner] Add X / X -> 1 & X % X -> 0 folds.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 25 07:28:27 PDT 2018


RKSimon updated this revision to Diff 162547.
RKSimon added a comment.

Rebased patch


Repository:
  rL LLVM

https://reviews.llvm.org/D50636

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/MSP430/libcalls.ll
  test/CodeGen/SystemZ/pr32372.ll
  test/CodeGen/X86/combine-sdiv.ll
  test/CodeGen/X86/combine-srem.ll
  test/CodeGen/X86/combine-udiv.ll
  test/CodeGen/X86/combine-urem.ll
  test/CodeGen/X86/pr38539.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50636.162547.patch
Type: text/x-patch
Size: 27861 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180825/b224f879/attachment.bin>


More information about the llvm-commits mailing list