[InstCombine] avoid crashing in pow->ldexp
authorSanjay Patel <spatel@rotateright.com>
Fri, 10 Feb 2023 13:01:04 +0000 (08:01 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 10 Feb 2023 13:03:13 +0000 (08:03 -0500)
commit9dcd7195a21c65d51b703f4b270e62461d18cd69
tree8fc4c1673c84a92225dbd6e547c17c6d3a46f031
parent5cec69bb43bc375dabe0d26e9a7aee1c71d00d3f
[InstCombine] avoid crashing in pow->ldexp

Similar to 62a0a1b9eea7788c1f9dbae -

We have pow math intrinsics in IR, but no ldexp intrinsics
to handle vector types.

A patch for that was proposed in D14327, but it was not completed.

Issue #60605
llvm/lib/Transforms/Utils/SimplifyLibCalls.cpp
llvm/test/Transforms/InstCombine/pow_fp_int.ll