[RISCV] Fix misleading formatting and remove a dead getNode call. NFC

This commit is contained in:
Craig Topper 2022-06-27 18:49:31 -07:00
parent 9f94d63a6a
commit ea1b861278
1 changed files with 1 additions and 2 deletions

View File

@ -7003,7 +7003,6 @@ void RISCVTargetLowering::ReplaceNodeResults(SDNode *N,
case ISD::ABS: {
assert(N->getValueType(0) == MVT::i32 && Subtarget.is64Bit() &&
"Unexpected custom legalisation");
DAG.getNode(ISD::SIGN_EXTEND, DL, MVT::i64, N->getOperand(0));
// Expand abs to Y = (sraiw X, 31); subw(xor(X, Y), Y)
@ -11974,7 +11973,7 @@ bool RISCVTargetLowering::decomposeMulByConstant(LLVMContext &Context, EVT VT,
APInt ImmS = Imm.ashr(Imm.countTrailingZeros());
if ((ImmS + 1).isPowerOf2() || (ImmS - 1).isPowerOf2() ||
(1 - ImmS).isPowerOf2())
return true;
return true;
}
}
}