[llvm] [TargetLowering] Lower ldexp into target supported instructions (PR #67552)

via llvm-commits llvm-commits at lists.llvm.org
Sat Oct 7 18:36:21 PDT 2023


================
@@ -57389,3 +57396,40 @@ Align X86TargetLowering::getPrefLoopAlignment(MachineLoop *ML) const {
     return Align(1ULL << ExperimentalPrefInnermostLoopAlignment);
   return TargetLowering::getPrefLoopAlignment();
 }
+
+SDValue X86TargetLowering::LowerFLDEXP(SDValue Op, SelectionDAG &DAG) const {
+  SDValue X = Op.getOperand(0);
+  EVT XScalarTy = X.getValueType();
+  SDValue Exp = Op.getOperand(1);
+
+  SDLoc DL(Op);
+  EVT XVT, ExpVT;
+  SDValue IID;
+  switch (Op.getValueSizeInBits()) {
----------------
huhu233 wrote:

Thanks, I'll fix it.

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


More information about the llvm-commits mailing list