[PATCH] D79369: [InstCombine] "X - (X / C) * C == 0" to "X & C-1 == 0"

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 12 00:30:17 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rG012909dcaf85: [InstCombine] "X - (X / C) * C == 0" to "X & C-1 == 0" (authored by EgorBo, committed by lebedev.ri).

Changed prior to commit:
  https://reviews.llvm.org/D79369?vs=269944&id=270314#toc

Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D79369

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/test/Transforms/InstCombine/add-shl-sdiv-to-srem.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79369.270314.patch
Type: text/x-patch
Size: 5908 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200612/e5275f37/attachment.bin>


More information about the llvm-commits mailing list