[llvm] [InstSimplify] Fix invalid dereference in simplifyBinaryIntrinsic (PR #194825)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 29 03:22:20 PDT 2026


https://github.com/nikic approved this pull request.

LGTM, though I will say that ideally this wouldn't accept a Call at all. it looks like the two uses are the function to get the vscale range and OptimizeConstMinMax to get FMF. FMF should really be passed in as an explicit argument, and I guess at that point one would replace the call arg with a function arg.

https://github.com/llvm/llvm-project/pull/194825


More information about the llvm-commits mailing list