Skip to content

Commit 09fc333

Browse files
committed
[NFC] Fold an if statement into return of bool expression
1 parent cf2533e commit 09fc333

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/AMDGPU/AsmParser/AMDGPUAsmParser.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3527,9 +3527,7 @@ static bool checkWriteLane(const MCInst &Inst) {
35273527
if (!LaneSelOp.isReg())
35283528
return false;
35293529
auto LaneSelReg = mc2PseudoReg(LaneSelOp.getReg());
3530-
if (LaneSelReg == M0 || LaneSelReg == M0_gfxpre11)
3531-
return true;
3532-
return false;
3530+
return LaneSelReg == M0 || LaneSelReg == M0_gfxpre11;
35333531
}
35343532

35353533
bool AMDGPUAsmParser::validateConstantBusLimitations(

0 commit comments

Comments
 (0)