commit | 3b98b95f4a93abf8caf93d9ed74f5be9bb70184a | [log] [tgz] |
---|---|---|
author | Roman Lebedev <lebedev.ri@gmail.com> | Thu Aug 30 09:32:21 2018 +0000 |
committer | Roman Lebedev <lebedev.ri@gmail.com> | Thu Aug 30 09:32:21 2018 +0000 |
tree | 405482e1bdfd4ef85a4d58b2897eaed804b39462 | |
parent | c5079f070c6e61d00c5994d3face58736c7492eb [diff] |
[NFC][CodeGen][SelectionDAG] Tests for X % C == 0 codegen improvement. Hacker's Delight 10-17: when C is constant, the result of X % C == 0 can be computed more cheaply without actually calculating the remainder. The motivation is discussed here: https://bugs.llvm.org/show_bug.cgi?id=35479. Patch by: hermord (Dmytro Shynkevych)! For https://reviews.llvm.org/D50222 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341047 91177308-0d34-0410-b5e6-96231b3b80d8