[PATCH] D46760: [InstCombine] Enhance narrowUDivURem.

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 29 16:25:04 PDT 2018


sanjoy added a comment.

The transformation we really want is: `(Z(A) / N) * N + Z(A) % N` => `Z(A)` where `Z(...)` is zero extension.  Maybe we can do that directly instead of reasoning about use lists like this (if we do it directly we will trivially not be increasing the number of zero extensions)?


Repository:
  rL LLVM

https://reviews.llvm.org/D46760





More information about the llvm-commits mailing list