Skip to content

Commit 619a9c4

Browse files
committed
opt code style
1 parent 29e45d0 commit 619a9c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/LoongArch/LoongArchISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2020,7 +2020,7 @@ static SDValue lowerVECTOR_SHUFFLE_XVPERM(const SDLoc &DL, ArrayRef<int> Mask,
20202020
// If both the lower and upper 128-bit parts access only one half of the
20212021
// vector (either lower or upper), avoid using xvperm.w. The latency of
20222022
// xvperm.w(3) is higher than using xvshuf(1) and xvori(1).
2023-
if ((FrontLo && (BackLo || BackHi)) || (FrontHi && (BackLo || BackHi)))
2023+
if ((FrontLo || FrontHi) && (BackLo || BackHi))
20242024
return SDValue();
20252025

20262026
SmallVector<SDValue, 8> Masks;

0 commit comments

Comments
 (0)