[PATCH] D45806: DAGcombiner: Handle correctly non-splat power of 2 -1 divisor

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 06:12:37 PDT 2018


RKSimon updated this revision to Diff 153068.
RKSimon added a reviewer: efriedma.
RKSimon added a comment.

Refactored the patch to blend the special case values in at the end of the pow2 calculations.

I'll add the SignedMin case in a followup but I wanted to keep this patch focussed on the -1 divisor case.


Repository:
  rL LLVM

https://reviews.llvm.org/D45806

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/X86/combine-sdiv.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D45806.153068.patch
Type: text/x-patch
Size: 16944 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180627/786c9543/attachment.bin>


More information about the llvm-commits mailing list