[PATCH] D38265: [BypassSlowDivision] Improve our handling of divisions by constants

Sanjoy Das via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 15:30:39 PDT 2017


sanjoy created this revision.
Herald added subscribers: mcrosier, jholewinski.

Don't bail out on constant divisors for divisions that can be narrowed without
introducing control flow .  This gives us a 32 bit multiply instead of an
emulated 64 bit multiply in the generated PTX assembly.


https://reviews.llvm.org/D38265

Files:
  lib/Transforms/Utils/BypassSlowDivision.cpp
  test/Transforms/CodeGenPrepare/NVPTX/bypass-slow-div.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38265.116626.patch
Type: text/x-patch
Size: 4584 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170926/9619436f/attachment.bin>


More information about the llvm-commits mailing list