Skip to content

Commit 661b22d

Browse files
committed
simplify boolean expression
1 parent a529dba commit 661b22d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

llvm/lib/CodeGen/RegAllocGreedy.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,11 +1415,7 @@ bool RAGreedy::trySplitAroundHintReg(MCPhysReg Hint,
14151415
Mask = ~Mask;
14161416

14171417
if (any_of(VirtReg.subranges(), [=](const LiveInterval::SubRange &S) {
1418-
if ((S.LaneMask & Mask).any()) {
1419-
if (S.liveAt(Index))
1420-
return true;
1421-
}
1422-
return false;
1418+
return (S.LaneMask & Mask).any() && S.liveAt(Index);
14231419
})) {
14241420
continue;
14251421
}

0 commit comments

Comments
 (0)