forked from OSchip/llvm-project
[RISCV] Fix misleading formatting and remove a dead getNode call. NFC
This commit is contained in:
parent
9f94d63a6a
commit
ea1b861278
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue