Skip to content

Commit d4aeb50

Browse files
committed
[RISCV] Simplify some code. NFC
1 parent 19de2e8 commit d4aeb50

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2340,8 +2340,7 @@ static SDValue lowerBUILD_VECTOR(SDValue Op, SelectionDAG &DAG,
23402340
static SDValue splatPartsI64WithVL(const SDLoc &DL, MVT VT, SDValue Passthru,
23412341
SDValue Lo, SDValue Hi, SDValue VL,
23422342
SelectionDAG &DAG) {
2343-
bool HasPassthru = Passthru && !Passthru.isUndef();
2344-
if (!HasPassthru && !Passthru)
2343+
if (!Passthru)
23452344
Passthru = DAG.getUNDEF(VT);
23462345
if (isa<ConstantSDNode>(Lo) && isa<ConstantSDNode>(Hi)) {
23472346
int32_t LoC = cast<ConstantSDNode>(Lo)->getSExtValue();

0 commit comments

Comments
 (0)