Skip to content

Commit 0aadf98

Browse files
Prefer readable condition
1 parent 93214ce commit 0aadf98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/X86/X86ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34447,7 +34447,7 @@ bool X86TargetLowering::isFMAFasterThanFMulAndFAdd(const MachineFunction &MF,
3444734447

3444834448
bool X86TargetLowering::isNarrowingProfitable(EVT SrcVT, EVT DestVT) const {
3444934449
// i16 instructions are longer (0x66 prefix) and potentially slower.
34450-
if (SrcVT.isVector() || DestVT.isVector())
34450+
if (!(SrcVT.isScalarInteger() && DestVT.isScalarInteger()))
3445134451
return false;
3445234452
return !(SrcVT == MVT::i32 && DestVT == MVT::i16);
3445334453
}

0 commit comments

Comments
 (0)