OSDN Git Service

[DAGCombiner] Split SDIV/UDIV optimization expansions from the rest of the combines...
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 10 Jul 2018 11:38:00 +0000 (11:38 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 10 Jul 2018 11:38:00 +0000 (11:38 +0000)
commit862b1ab934640f6740ca4b03edfb9940c2ee1634
tree07c4042521daa1ccd33d63dca604c8b35487a6c4
parent20b07351273d8883ad8141d88f8bd0ac43a6d854
[DAGCombiner] Split SDIV/UDIV optimization expansions from the rest of the combines. NFCI.

As suggested by @efriedma on D48975, this patch separates the BuildDiv/Pow2 style optimizations from the rest of the visitSDIV/visitUDIV to make it easier to reuse the combines and will allow us to avoid some rather nasty node recursive combining in visitREM.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@336656 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp