dtcxzyw wrote: We may need a one-use check on the fptosi cast. This is a bit different from our general policy, as the fp constant materialization is not as cheap as integers. https://github.com/llvm/llvm-project/pull/155501