[SelectionDAG] Improve `computeKnownBits` implementations of `sdiv` and `udiv`
authorNoah Goldstein <goldstein.w.n@gmail.com>
Mon, 8 May 2023 06:41:39 +0000 (01:41 -0500)
committerNoah Goldstein <goldstein.w.n@gmail.com>
Tue, 16 May 2023 23:58:13 +0000 (18:58 -0500)
commitd294e3cb763abd33fcabf1e3642cb6659fd304cf
tree6a87ee80585c8a235dc171312b16674204f5f4d1
parent3b2a217a47b015f28c838418395912db5ed11bc8
[SelectionDAG] Improve `computeKnownBits` implementations of `sdiv` and `udiv`

Add `exact` flag handling for `udiv` and add entire `sdiv` case.

Differential Revision: https://reviews.llvm.org/D150098
llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
llvm/test/CodeGen/ARM/select-imm.ll
llvm/test/CodeGen/X86/knownbits-div.ll