[llvm] [InstCombine] Canonicalize `(uitofp x)` -> `(sitofp x)` if `x >= 0` (PR #82404)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 11:45:19 PST 2024
nikic wrote:
> Edit: The little test I added is an example.
Is there some inherent reason why that transform can only work with sitofp, rather than also uitofp with an s/signed/unsigned replacement everywhere? If there isn't, we should extend that transform instead.
https://github.com/llvm/llvm-project/pull/82404
More information about the llvm-commits
mailing list