[PATCH] D26819: Integer division expansion should handle constant divisors intelligently
    Dmitri Shtilman via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue Nov 29 16:19:50 PST 2016
    
    
  
Hi all,
The following patch improves integer division sw expansion.
Namely - the case of division by a constant, which would be expanded to a simple multiplication by a magic number rather than a full division loop.
Implementation follows the DAG code in TargetLowering::BuildSDIV().
Ref: "Hacker's Delight" or "The PowerPC Compiler Writer's Guide”.
Please review.
Dmitri
https://reviews.llvm.org/D26819
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161130/f8247d8d/attachment.html>
    
    
More information about the llvm-commits
mailing list