Issue 153521
Summary About division on amdgpu backend
Labels new issue
Assignees
Reporter 0oyyo0
    I'm looking for information on the AMD GPU backend's support for integer division. I haven't found any instructions related to integer division in the ISA documentation, and the code I see for division, such as in AMDGPUCodeGenPrepare.cpp and SIISelLowering.cpp, uses other methods for calculation, e.g. (a/b---->a*(1/b)) . Therefore, I'd like to understand the AMD GPU hardware's support for division and why it's converted to other methods. I suspect it's because division is time-consuming.

One conversion method is as follows:
<img width="1138" height="1061" alt="Image" src="" />
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to