david-arm wrote: @nikic Agreed. Passing in a Call instruction restricts the situations where simplifications can be applied. I suspect such refactoring would equally apply to simplifyIntrinsic and simplifyUnaryIntrinsic. https://github.com/llvm/llvm-project/pull/194825