Skip to content

Commit 7a7c232

Browse files
committed
[BasicTTIImpl] Add entries to getTypeBasedIntrinsicCost
1 parent 618a972 commit 7a7c232

File tree

3 files changed

+84
-75
lines changed

3 files changed

+84
-75
lines changed

llvm/include/llvm/CodeGen/BasicTTIImpl.h

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2243,6 +2243,9 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
22432243
case Intrinsic::log2:
22442244
ISD = ISD::FLOG2;
22452245
break;
2246+
case Intrinsic::ldexp:
2247+
ISD = ISD::FLDEXP;
2248+
break;
22462249
case Intrinsic::fabs:
22472250
ISD = ISD::FABS;
22482251
break;
@@ -2297,6 +2300,12 @@ class BasicTTIImplBase : public TargetTransformInfoImplCRTPBase<T> {
22972300
case Intrinsic::roundeven:
22982301
ISD = ISD::FROUNDEVEN;
22992302
break;
2303+
case Intrinsic::lround:
2304+
ISD = ISD::LROUND;
2305+
break;
2306+
case Intrinsic::llround:
2307+
ISD = ISD::LLROUND;
2308+
break;
23002309
case Intrinsic::pow:
23012310
ISD = ISD::FPOW;
23022311
break;

0 commit comments

Comments
 (0)