diff options
| author | Jay Foad <jay.foad@amd.com> | 2020-06-22 15:27:37 +0100 |
|---|---|---|
| committer | Jay Foad <jay.foad@amd.com> | 2020-07-08 19:14:48 +0100 |
| commit | f4bd01c1918e90f232a098b4878b52c6f7d4a215 (patch) | |
| tree | 4ab33d1745112656f8455dee904bd6ec9a8fbe20 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
| parent | c444b1b904b11356c57980a41a19f4ef361b80a8 (diff) | |
[AMDGPU] Fix and simplify AMDGPUCodeGenPrepare::expandDivRem32
Fix the division/remainder algorithm by adding a second quotient
refinement step, which is required in some cases like
0xFFFFFFFFu / 0x11111111u (https://bugs.llvm.org/show_bug.cgi?id=46212).
Also document, rewrite and simplify it by ensuring that we always have a
lower bound on inv(y), which simplifies the UNR step and the quotient
refinement steps.
Differential Revision: https://reviews.llvm.org/D83381
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions
