Skip to content

Commit f934beb

Browse files
committed
opt code style
1 parent f759464 commit f934beb

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
@@ -1862,7 +1862,7 @@ static SDValue lowerVECTOR_SHUFFLE_XVPERM(const SDLoc &DL, ArrayRef<int> Mask,
18621862
// If both the lower and upper 128-bit parts access only one half of the
18631863
// vector (either lower or upper), avoid using xvperm.w. The latency of
18641864
// xvperm.w(3) is higher than using xvshuf(1) and xvori(1).
1865-
if ((FrontLo && (BackLo || BackHi)) || (FrontHi && (BackLo || BackHi)))
1865+
if ((FrontLo || FrontHi) && (BackLo || BackHi))
18661866
return SDValue();
18671867

18681868
SmallVector<SDValue, 8> Masks;

0 commit comments

Comments
 (0)