Issue |
98928
|
Summary |
LLVM CodeGen doesn't support optimization for exact unsigned division even though it supports exact signed division
|
Labels |
new issue
|
Assignees |
|
Reporter |
AtariDreams
|
Have simpler lowering for exact udivs in both SelectionDAG and GlobalISel.
The algorithm is the same between unsigned exact divs and signed divs save for arithmetic vs logical shift for even divisors, according to Hacker's Delight, 2nd Edition, page 242.
_Originally posted by @AtariDreams in https://github.com/llvm/llvm-project/pull/87161_
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs