Some target don't have div instruction or div is very expensive. For large
integer type, div is transformed to non-div instruction by expand-div-rem
pass. Transforming div to add in loop help to improve the performance.
Details
Details
- Reviewers
hliao craig.topper
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Time | Test | |
---|---|---|
40 ms | x64 debian > LLVM.CodeGen/X86::twoaddr-coalesce-3.ll |
Does div here replace the original i?