[TargetLowering] Add BuildSDIVPattern helper to BuildExactSDIV (NFCI).
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 Aug 2018 13:56:04 +0000 (13:56 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 9 Aug 2018 13:56:04 +0000 (13:56 +0000)
commita9f95429d913d2cd273a283c90ddad7025ac47bf
treec1f6ba2eb6aa035f46e7df42fc572c75e2e38fc6
parentbdd8493f2b6bb259958553b25781cb434d063b85
[TargetLowering] Add BuildSDIVPattern helper to BuildExactSDIV (NFCI).

As requested in D50392, pull the magic constant calculations out into a helper function.

llvm-svn: 339346
llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp