[llvm] [IR] Fix crash when creating llvm.powi.* by `CreateBinaryIntrinsic` (PR #67263)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 24 06:19:23 PDT 2023


https://github.com/nikic requested changes to this pull request.

This change is completely incorrect. The passed types here are the mangling types of the intrinsic, not the operand types. CreateBinaryIntrinsic only supports intrinsics with two operands that are mangled on the single type, as the documentation says:

> Create a call to intrinsic ID with 2 operands which is mangled on the first type.

Passing an additional type will result in incorrect intrinsic mangling.

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


More information about the llvm-commits mailing list