https://github.com/arsenm approved this pull request. Pretty sure frem is just generally broken, and this at least fixes one way it's broken. We never wired up OpenCL to use frem for example, so I didn't know anything was actually using this. https://github.com/llvm/llvm-project/pull/70448