aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
index 16a10cf..e059798 100644
--- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
+++ b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
@@ -9054,14 +9054,14 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
APInt AllOneMantissa = APFloat::getLargest(Semantics).bitcastToAPInt() & ~Inf;
APInt QNaNBitMask =
APInt::getOneBitSet(BitSize, AllOneMantissa.getActiveBits() - 1);
- APInt InvertionMask = APInt::getAllOnes(ResultVT.getScalarSizeInBits());
+ APInt InversionMask = APInt::getAllOnes(ResultVT.getScalarSizeInBits());
SDValue ValueMaskV = DAG.getConstant(ValueMask, DL, IntVT);
SDValue SignBitV = DAG.getConstant(SignBit, DL, IntVT);
SDValue ExpMaskV = DAG.getConstant(ExpMask, DL, IntVT);
SDValue ZeroV = DAG.getConstant(0, DL, IntVT);
SDValue InfV = DAG.getConstant(Inf, DL, IntVT);
- SDValue ResultInvertionMask = DAG.getConstant(InvertionMask, DL, ResultVT);
+ SDValue ResultInversionMask = DAG.getConstant(InversionMask, DL, ResultVT);
SDValue Res;
const auto appendResult = [&](SDValue PartialRes) {
@@ -9205,7 +9205,7 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
PartialRes = DAG.getNode(ISD::AND, DL, ResultVT, PartialRes, SignV);
else if (PartialCheck == fcPosNormal) {
SDValue PosSignV =
- DAG.getNode(ISD::XOR, DL, ResultVT, SignV, ResultInvertionMask);
+ DAG.getNode(ISD::XOR, DL, ResultVT, SignV, ResultInversionMask);
PartialRes = DAG.getNode(ISD::AND, DL, ResultVT, PartialRes, PosSignV);
}
if (IsF80)
@@ -9217,7 +9217,7 @@ SDValue TargetLowering::expandIS_FPCLASS(EVT ResultVT, SDValue Op,
if (!Res)
return DAG.getConstant(IsInverted, DL, ResultVT);
if (IsInverted)
- Res = DAG.getNode(ISD::XOR, DL, ResultVT, Res, ResultInvertionMask);
+ Res = DAG.getNode(ISD::XOR, DL, ResultVT, Res, ResultInversionMask);
return Res;
}