llvm-project
c4228816 - [SelectionDAGBuilder] Use address width when lowering ptrtoaddr

Commit
20 days ago
[SelectionDAGBuilder] Use address width when lowering ptrtoaddr Instead of just deferring to ptrtoint, we should truncate to the index width and then perform the ZextOrTrunc. This is effectively NFC since ptrtoint ends up doing the same thing, but handling it explicitly is cleaner and will make it easier to eventually upstream the changes needed for CHERI support. Reviewed By: nikic, arsenm Pull Request: https://github.com/llvm/llvm-project/pull/139423
Author
Parents
Loading