]> granicus.if.org Git - llvm/commit
[BypassSlowDivision] move map helper code to header; NFC
authorSanjay Patel <spatel@rotateright.com>
Thu, 24 Aug 2017 14:43:33 +0000 (14:43 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 24 Aug 2017 14:43:33 +0000 (14:43 +0000)
commite8714301ce363df5fb8b18b0b05c3c9db60afff2
treea7f34948916f34fc62332f20481d6ec61f7f90c7
parentb142bc0a90b2a004fda968361d2f04d7de6082f2
[BypassSlowDivision] move map helper code to header; NFC

We can reuse this code with other div/rem transforms as shown in:
https://reviews.llvm.org/D31037
https://bugs.llvm.org/show_bug.cgi?id=31028

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311661 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/BypassSlowDivision.h
lib/Transforms/Utils/BypassSlowDivision.cpp