[PATCH] D37713: [InstSimplify] fold sdiv/srem based on compare of dividend and divisor

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 11 15:09:44 PDT 2017


spatel updated this revision to Diff 114714.
spatel added a comment.

Patch updated:
Let the callers (sdiv or srem) choose the appropriate answer based on a bool return from the common helper.


https://reviews.llvm.org/D37713

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstCombine/div.ll
  test/Transforms/InstSimplify/signed-div-rem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37713.114714.patch
Type: text/x-patch
Size: 10011 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170911/2aab08e4/attachment-0001.bin>


More information about the llvm-commits mailing list