[InstCombine] avoid crashing in exp2->ldexp
authorSanjay Patel <spatel@rotateright.com>
Fri, 10 Feb 2023 12:03:56 +0000 (07:03 -0500)
committerSanjay Patel <spatel@rotateright.com>
Fri, 10 Feb 2023 12:35:39 +0000 (07:35 -0500)
commit62a0a1b9eea7788c1f9dbaebee51c95dd2da99e6
tree18c1015273f6e5414ecf4e0c7ff9fac9e21102a6
parentc2b7085d5c86ddba7d79a9b4900734061e5ec90f
[InstCombine] avoid crashing in exp2->ldexp

We have exp2 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/exp2-1.ll